Aitozi commented on a change in pull request #17554:
URL: https://github.com/apache/flink/pull/17554#discussion_r753626315



##########
File path: 
flink-kubernetes/src/main/java/org/apache/flink/kubernetes/KubernetesClusterDescriptor.java
##########
@@ -205,17 +211,23 @@ private String getWebMonitorAddress(Configuration 
configuration) throws Exceptio
             Preconditions.checkArgument(pipelineJars.size() == 1, "Should only 
have one jar");
         }
 
-        final ClusterClientProvider<String> clusterClientProvider =
-                deployClusterInternal(
-                        KubernetesApplicationClusterEntrypoint.class.getName(),
-                        clusterSpecification,
-                        false);
+        ClusterClientProvider<String> clusterClientProvider;
+        try {
+            clusterClientProvider =
+                    deployClusterInternal(
+                            
KubernetesApplicationClusterEntrypoint.class.getName(),
+                            clusterSpecification,
+                            false);
 
-        try (ClusterClient<String> clusterClient = 
clusterClientProvider.getClusterClient()) {
-            LOG.info(
-                    "Create flink application cluster {} successfully, 
JobManager Web Interface: {}",
-                    clusterId,
-                    clusterClient.getWebInterfaceURL());
+            try (ClusterClient<String> clusterClient = 
clusterClientProvider.getClusterClient()) {
+                LOG.info(
+                        "Create flink application cluster {} successfully, 
JobManager Web Interface: {}",
+                        clusterId,
+                        clusterClient.getWebInterfaceURL());
+            }
+        } catch (Exception e) {

Review comment:
       Good suggestion 👍




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to