[ 
https://issues.apache.org/jira/browse/FLINK-25495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17471726#comment-17471726
 ] 

Yang Wang commented on FLINK-25495:
-----------------------------------

I am afraid that depending on the attach mode is not reliable since the Flink 
client may disconnect because of network issues or JobManager failover.

Moreover, if we make the Flink client could run in attach mode, then the 
JobManager should not exit until the job result has been retrieved. It might 
cause JobManager leak when the Flink client crashed unexpectedly.

> Client support attach mode when using the deployment of application mode
> ------------------------------------------------------------------------
>
>                 Key: FLINK-25495
>                 URL: https://issues.apache.org/jira/browse/FLINK-25495
>             Project: Flink
>          Issue Type: Improvement
>          Components: Client / Job Submission
>            Reporter: Junfan Zhang
>            Priority: Major
>
> h2. Why
> In our internal data platform, we support flink batch and streaming job 
> submission. To reduce the submission worker overload, we use the Flink 
> application mode to submit flink job. It's a nice feature!
> However, on batch mode, we hope flink client couldn't exit until the batch 
> application finished (No need to get job result, just wait). Now the flink 
> lack this feature, and it is not stated in the document that Application Mode 
> does not support attach.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to