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

[jira] [Created] (FLINK-34933) JobMasterServiceLeadershipRunnerTest#testResultFutureCompletionOfOutdatedLeaderIsIgnored isn't implemented properly

Matthias Pohl created FLINK-34933:
-------------------------------------

             Summary: JobMasterServiceLeadershipRunnerTest#testResultFutureCompletionOfOutdatedLeaderIsIgnored isn't implemented properly
                 Key: FLINK-34933
                 URL: https://issues.apache.org/jira/browse/FLINK-34933
             Project: Flink
          Issue Type: Bug
          Components: Runtime / Coordination
    Affects Versions: 1.18.1, 1.19.0, 1.17.2, 1.20.0
            Reporter: Matthias Pohl


{{testResultFutureCompletionOfOutdatedLeaderIsIgnored}} doesn't test the desired behavior: The {{TestingJobMasterService#closeAsync()}} callback throws an {{UnsupportedOperationException}} by default which prevents the test from properly finalizing the leadership revocation.

The test is still passing because the test checks implicitly for this error. Instead, we should verify that the runner's resultFuture doesn't complete until the runner is closed.



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