Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-6342

Start ZooKeeperLeaderElectionService under lock to avoid race condition

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.3.0
    • Labels:
      None

      Description

      The ZooKeeperLeaderElectionService should start its components under the lock in order to avoid race conditions with the LeaderLatchListener's callback isLeader. If this is not done, then a leader notification might go unnoticed from the election service because the LeaderLatch has been started but the internal state of the election service has not been set to running yet.

        Activity

        Hide
        till.rohrmann Till Rohrmann added a comment -

        This only applies to changes I've made in a local branch. Will fix it in the branch.

        Show
        till.rohrmann Till Rohrmann added a comment - This only applies to changes I've made in a local branch. Will fix it in the branch.

          People

          • Assignee:
            till.rohrmann Till Rohrmann
            Reporter:
            till.rohrmann Till Rohrmann
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development