Skip to content

Commit

Permalink
[Optimization][dinky-getaway] Delete the previously failed cluster wh…
Browse files Browse the repository at this point in the history
…en resubmitting the task. (DataLinkDC#3969)

Co-authored-by: yuhang2.zhang <[email protected]>
  • Loading branch information
2 people authored and Zzm0809 committed Dec 7, 2024
1 parent 1d08cf3 commit 20a44c4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ public ClusterClientProvider<String> deployApplicationCluster(
throws ClusterDeploymentException {
if (client.getService(ExternalServiceDecorator.getExternalServiceName(clusterId))
.isPresent()) {
throw new ClusterDeploymentException("The Flink cluster " + clusterId + " already exists.");
client.stopAndCleanupCluster(clusterId);
LOG.warn("The Flink cluster {} already exists, automatically stopAndCleanupCluster.", clusterId);
}

checkNotNull(clusterSpecification);
Expand Down

0 comments on commit 20a44c4

Please sign in to comment.