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

Matthias Pohl commented on FLINK-26772:
---------------------------------------

FYI: This applies to both, the application and the job mode: In Application 
Mode we trigger the cluster shutdown in the 
[ApplicationDispatcherBootstrap.finish:197|https://github.com/apache/flink/blob/42556522637bf7b6f54809afec08fa0899f3e8fd/flink-clients/src/main/java/org/apache/flink/client/deployment/application/ApplicationDispatcherBootstrap.java#L197]
 method. In job mode, we call the method in 
[MiniCluster.jobReachedTerminalState:155|https://github.com/apache/flink/blob/8d006224d209c981c563ef6625bc6f617d40684a/flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/MiniDispatcher.java#L155].
 I'm gonna update the issue title accordingly...

> Application Mode does not wait for job cleanup during shutdown
> --------------------------------------------------------------
>
>                 Key: FLINK-26772
>                 URL: https://issues.apache.org/jira/browse/FLINK-26772
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / Coordination
>    Affects Versions: 1.15.0
>            Reporter: Mika Naylor
>            Assignee: Matthias Pohl
>            Priority: Critical
>              Labels: pull-request-available
>         Attachments: FLINK-26772.standalone-job.log, 
> testcluster-599f4d476b-bghw5_log.txt
>
>
> We discovered that in Application Mode, when the application has completed, 
> the cluster is shutdown even if there are ongoing resource cleanup events 
> happening in the background. For example, if ha cleanup fails, further 
> retries are not attempted as the cluster is shut down before this can happen.
>  
> We should also add a flag for the shutdown that will prevent further jobs 
> from being submitted.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to