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

Update documentation for snapCount

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.4.11, 3.5.4, 3.6.0
    • documentation
    • None

    Description

      The documentation states that

      ZooKeeper logs transactions to a transaction
      log. After snapCount transactions are written to a log
      file a snapshot is started and a new transaction log
      file is created. The default snapCount is
      100,000.
      

      However, in implementation, snapshotting is done when logCount is somwhere in (snapCount/2, snapCount+1], based on the limit set at runtime:

              if (logCount > (snapCount / 2 + randRoll)) {
      

      as in

      https://github.com/apache/zookeeper/blob/trunk/src/java/main/org/apache/zookeeper/server/SyncRequestProcessor.java#L124

      Attachments

        1. ZOOKEEPER-2349.patch
          0.9 kB
          Raghavendra Prabhu

        Issue Links

          Activity

            People

              maoling Ling Mao
              rprabhu Raghavendra Prabhu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: