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

Gary Yao edited comment on FLINK-16637 at 3/30/20, 8:57 AM:
------------------------------------------------------------

[~tison] Thanks for looking into this.
{quote}The solution should be straightforward: we ensure that 
{{AbstractHandler#closeAsync}} called at most once.
{quote}
I would also add a guard to {{InFlightRequestTracker}}. What do you think?
{quote}Further investigation could try to figure out whether or not we can 
remove

org/apache/flink/runtime/webmonitor/WebMonitorEndpoint.java:597
handlers.add(Tuple2.of(YarnCancelJobTerminationHeaders.getInstance(), 
jobCancelTerminationHandler));
{quote}
I am afraid that this is not possible since we are also supporting old Hadoop 
versions.

 


was (Author: gjy):
[~tison] Thanks for looking into this.
{quote}The solution should be straightforward: we ensure that 
{{AbstractHandler#closeAsync}} called at most once.
{quote}
I would also add a guard to {{InFlightRequestTracker. What do you think?}}
{quote}Further investigation could try to figure out whether or not we can 
remove

org/apache/flink/runtime/webmonitor/WebMonitorEndpoint.java:597
handlers.add(Tuple2.of(YarnCancelJobTerminationHeaders.getInstance(), 
jobCancelTerminationHandler));
{quote}
I am afraid that this is not possible since we are also supporting old Hadoop 
versions.

 

> Flink per job mode terminates before serving job cancellation result
> --------------------------------------------------------------------
>
>                 Key: FLINK-16637
>                 URL: https://issues.apache.org/jira/browse/FLINK-16637
>             Project: Flink
>          Issue Type: Bug
>          Components: Deployment / YARN
>    Affects Versions: 1.10.0
>            Reporter: Zili Chen
>            Priority: Major
>         Attachments: yarn.log
>
>
> The {{MiniDispatcher}} no longer waits until the REST handler has served the 
> cancellation result before shutting down. This behaviour seems to be 
> introduced with FLINK-15116.
> See also 
> [https://lists.apache.org/x/thread.html/rcadbd6ceede422bac8d4483fd0cdae58659fbff78533a399eb136743@%3Cdev.flink.apache.org%3E]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to