[ https://issues.apache.org/jira/browse/FLINK-33116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17771813#comment-17771813 ]
Matthias Pohl commented on FLINK-33116: --------------------------------------- Looks like the {{CliClient}} is not thread-safe: The close call fails with a {{NullPointerException}} because {{CliClient.close()}} calls {{closeTerminal()}} if a terminal set. But the test finishes the {{client.executeInInteractiveMode()}} in a separate thread which calls {{closeTerminal()}} in the end as well. [~fsk119] can you delegate this issue? > CliClientTest.testCancelExecutionInteractiveMode fails with NPE on AZP > ---------------------------------------------------------------------- > > Key: FLINK-33116 > URL: https://issues.apache.org/jira/browse/FLINK-33116 > Project: Flink > Issue Type: Bug > Components: Table SQL / Client > Affects Versions: 1.19.0 > Reporter: Sergey Nuyanzin > Priority: Critical > Labels: stale-critical, test-stability > > This build > [https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=53309&view=logs&j=ce3801ad-3bd5-5f06-d165-34d37e757d90&t=5e4d9387-1dcc-5885-a901-90469b7e6d2f&l=12264] > fails as > {noformat} > Sep 18 02:26:15 02:26:15.743 [ERROR] > org.apache.flink.table.client.cli.CliClientTest.testCancelExecutionInteractiveMode > Time elapsed: 0.1 s <<< ERROR! > Sep 18 02:26:15 java.lang.NullPointerException > Sep 18 02:26:15 at > org.apache.flink.table.client.cli.CliClient.closeTerminal(CliClient.java:284) > Sep 18 02:26:15 at > org.apache.flink.table.client.cli.CliClient.close(CliClient.java:108) > Sep 18 02:26:15 at > org.apache.flink.table.client.cli.CliClientTest.testCancelExecutionInteractiveMode(CliClientTest.java:314) > Sep 18 02:26:15 at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)