Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-26522 FLIP-285: Refactoring code for multiple component leader election
  3. FLINK-30462

DefaultMultipleComponentLeaderElectionService saves wrong leader session ID

    XMLWordPrintableJSON

Details

    Description

      We save a UUID in DefaultMultipleComponentLeaderElectionService:195 but use a different one for granting the leadership to each of the components (see DefaultMultipleComponentLeaderElectionService:199).

      We reach an inconsistent state if the JM acquired the leadership before another component registers itself at the MultipleComponentLeaderElectionService. In that case, a different session ID is passed than the one that is set for components that have been registered before the leadership was acquired by the JobManager. That could be the case for JobMaster leadershipt.

      Attachments

        Issue Links

          Activity

            People

              mapohl Matthias Pohl
              mapohl Matthias Pohl
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: