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

Leader loading database twice

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.6, 3.5.0
    • Component/s: None
    • Labels:
      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
          0.8 kB
          Flavio Paiva Junqueira
        2. ZOOKEEPER-1642.patch
          2 kB
          Flavio Paiva Junqueira

          Activity

            People

            • Assignee:
              fpj Flavio Paiva Junqueira
              Reporter:
              fpj Flavio Paiva Junqueira
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: