tillrohrmann commented on pull request #14692:
URL: https://github.com/apache/flink/pull/14692#issuecomment-762891085


   You are right with the per-job-mode and K8s @wangyang0918. Hence, this was a 
bad example ;-) But the example of canceling the job/application is actually a 
good one. If we know that we cannot talk to the cluster, then we probably 
shouldn't create a `RestClusterClient` in the first place because it might fail 
with some weird exceptions (e.g. `TimeoutException`) later on. Instead the user 
should probably be told that he should submit his application using the 
detached mode when using the `ClusterIP` setting.
   
   For what do we actually need the `RestClusterClient` when using the 
application mode? Maybe @kl0u or @aljoscha could help us answering this 
question.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to