You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Matthias Pohl (Jira)" <ji...@apache.org> on 2023/06/23 15:52:00 UTC

[jira] [Created] (FLINK-32421) EmbeddedLeaderServiceTest.testConcurrentRevokeLeadershipAndShutdown is not properly implemented

Matthias Pohl created FLINK-32421:
-------------------------------------

             Summary: EmbeddedLeaderServiceTest.testConcurrentRevokeLeadershipAndShutdown is not properly implemented
                 Key: FLINK-32421
                 URL: https://issues.apache.org/jira/browse/FLINK-32421
             Project: Flink
          Issue Type: Bug
          Components: Runtime / Coordination, Tests
    Affects Versions: 1.17.1, 1.16.2, 1.18.0
            Reporter: Matthias Pohl


The purpose of {{EmbeddedLeaderServiceTest.testConcurrentRevokeLeadershipAndShutdown}} is to check that there is no {{NullPointerException}} happening if the event processing happens after the shutdown of the {{EmbeddedExecutorService}} (see FLINK-11855).

But the concurrent execution is not handled properly. The test also succeeds if the close call happened before the shutdown (due to the multi-threaded nature of the test) which leaves us without the actual test scenario being tested.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)