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

Wrong epoch file created

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4.2
    • 3.4.6, 3.5.0
    • quorum
    • None
    • Reviewed

    Description

      It looks like line 443 in QuorumPeer [1] may need to change from:

      writeLongToFile(CURRENT_EPOCH_FILENAME, acceptedEpoch);

      to

      writeLongToFile(ACCEPTED_EPOCH_FILENAME, acceptedEpoch);

      I only noticed this reading the code, so I may be wrong and I don't know yet if/how this affects the runtime.

      [1] https://github.com/apache/zookeeper/blob/trunk/src/java/main/org/apache/zookeeper/server/quorum/QuorumPeer.java#L443

      Attachments

        1. ZOOKEEPER-1387.patch
          4 kB
          Benjamin Reed
        2. ZOOKEEPER-1387_br34.patch
          5 kB
          Patrick D. Hunt

        Activity

          People

            breed Benjamin Reed
            busjaeger Benjamin Busjaeger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: