You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Weijie Guo (Jira)" <ji...@apache.org> on 2022/10/31 10:01:00 UTC

[jira] [Created] (FLINK-29808) Grant leadership to leaderContender while it is closing may lead to deadlock

Weijie Guo created FLINK-29808:
----------------------------------

             Summary: Grant leadership to leaderContender while it is closing may lead to deadlock
                 Key: FLINK-29808
                 URL: https://issues.apache.org/jira/browse/FLINK-29808
             Project: Flink
          Issue Type: Technical Debt
          Components: Runtime / Coordination
    Affects Versions: 1.17.0
            Reporter: Weijie Guo


If we grant leadership to a leaderContender, but it is closing at the same time, deadlock may occur. This phenomenon was observed in 'JobMasterServiceLeadershipRunner'. Through some investigation, I found that `ResourceManagerServiceImpl` took some measures to avoid this problem, and FLINK-29234 try to fix this problem in a similar way.

However, there are other implementations of leaderContender. We need to check the code and introduce some tests when necessary to ensure that they will not suffer the same problem.



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