zentol commented on a change in pull request #11639: [FLINK-16626][runtime] Prevent REST handler from being closed more than once URL: https://github.com/apache/flink/pull/11639#discussion_r404159512
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/webmonitor/WebMonitorEndpoint.java ########## @@ -500,6 +500,15 @@ public WebMonitorEndpoint( JobCancellationHeaders.getInstance(), TerminationModeQueryParameter.TerminationMode.CANCEL); + // this is to prevent the same JobCancellationHandler from being registered twice + // should be removed once the Yarn proxy can forward all REST verbs Review comment: Let's directly refer to the resulting problem. ```suggestion // use a separate handler for the yarn-cancel to ensure close() is only called once ``` ---------------------------------------------------------------- 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 With regards, Apache Git Services