Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.11, 3.5.4, 3.6.0
    • Component/s: documentation
    • Labels:
      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

              • Assignee:
                maoling maoling
                Reporter:
                rprabhu Raghavendra Prabhu
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: