Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1814

Reduction of waiting time during Fast Leader Election

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 3.4.5, 3.5.0
    • None
    • leaderElection
    • None

    Description

      FastLeader election takes long time because of the exponential backoff. Currently the time is 60 seconds.

      It would be interesting to give the possibility to configure this parameter, like for example for a Server shutdown.

      Otherwise, it sometimes takes so long and it has been detected a test failure when executing: org.apache.zookeeper.server.quorum.QuorumPeerMainTest.

      This test case waits until 30 seconds and this is smaller than the 60 seconds where the leader election can be waiting for at the moment of shutting down.

      Considering the failure during the test case, this issue was considered a possible bug.

      Attachments

        1. ZOOKEEPER-1814.patch
          12 kB
          Daniel Peon
        2. ZOOKEEPER-1814.patch
          12 kB
          Daniel Peon
        3. ZOOKEEPER-1814.patch
          13 kB
          Daniel Peon
        4. ZOOKEEPER-1814.patch
          13 kB
          Daniel Peon
        5. ZOOKEEPER-1814.patch
          13 kB
          Daniel Peon
        6. ZOOKEEPER-1814.patch
          13 kB
          Daniel Peon
        7. ZOOKEEPER-1814.patch
          13 kB
          Daniel Peon
        8. ZOOKEEPER-1814.patch
          13 kB
          Daniel Peon
        9. ZOOKEEPER-1814.patch
          14 kB
          Daniel Peon
        10. ZOOKEEPER-1814_trunk.patch
          15 kB
          Daniel Peon
        11. ZOOKEEPER-1814_release_3_5_0.patch
          15 kB
          Daniel Peon

        Activity

          People

            danipeon Daniel Peon
            danipeon Daniel Peon
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified