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

Add a documentation about the property: zookeeper.testingonly.initialZxid

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: documentation
    • Labels:
      None

      Description

       * This field allows you to override the zxid of the server. Typically
       * you'll want to set it to something like 0xfffffff0 and then
       * start the quorum, run some operations and see the re-election.
       */
      String initialZxid = System.getProperty("zookeeper.testingonly.initialZxid");
      if (initialZxid != null) {
          long zxid = Long.parseLong(initialZxid);
          zk.setZxid((zk.getZxid() & 0xffffffff00000000L) | zxid);
      }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              maoling Ling Mao
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: