[ https://issues.apache.org/jira/browse/FLINK-30978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17694885#comment-17694885 ]
Shengkai Fang commented on FLINK-30978: --------------------------------------- After discussing with colleagues, I find the problem is because the `RestClient#sendRequest` and `CompletableFuture#get` are not atomic. The Client may send the request and the Server returns the response immediately before ExecutorImpl tries to invoke `CompletableFuture#get`. In this case, the Executor will not check the interrupted flag on the thread and continue execution here. > ExecutorImplITCase.testInterruptExecution hangs waiting for SQL gateway > service closing > --------------------------------------------------------------------------------------- > > Key: FLINK-30978 > URL: https://issues.apache.org/jira/browse/FLINK-30978 > Project: Flink > Issue Type: Bug > Components: Table SQL / Gateway > Affects Versions: 1.17.0 > Reporter: Qingsheng Ren > Assignee: Shengkai Fang > Priority: Major > Labels: test-stability > > https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=45921&view=logs&j=0c940707-2659-5648-cbe6-a1ad63045f0a&t=075c2716-8010-5565-fe08-3c4bb45824a4&l=44674 -- This message was sent by Atlassian Jira (v8.20.10#820010)