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

acceptedEpoch.tmp rename failure will cause server startup error

    XMLWordPrintableJSON

    Details

      Description

      accepted epoch is first written to temporary file acceptedEpoch.tmp then this file is renamed to acceptedEpoch.

      Failure, either because of exception or power-off, in renaming the acceptedEpoch.tmp file will cause server startup error with message "The current epoch, x, is older than the last zxid y"

      To handle this scenario we should read accepted epoch from this temp file as well.

      For more context, refer https://github.com/apache/zookeeper/pull/1109

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                arshad.mohammad Mohammad Arshad
                Reporter:
                arshad.mohammad Mohammad Arshad
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 10m
                  2h 10m