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

Leader loading database twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.4.6, 3.5.0
    • None
    • None

    Description

      The leader server currently loads the database before running leader election when trying to figure out the zxid it needs to use for the election and again when it starts leading. This is problematic for larger databases so we should remove the redundant load if possible.

      The code references are:

      1. getLastLoggedZxid() in QuorumPeer;
      2. loadData() in ZooKeeperServer.

      Attachments

        1. ZOOKEEPER-1642.patch
          2 kB
          Flavio Paiva Junqueira
        2. ZOOKEEPER-1642.patch
          0.8 kB
          Flavio Paiva Junqueira

        Activity

          People

            fpj Flavio Paiva Junqueira
            fpj Flavio Paiva Junqueira
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: