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

QuorumPeer loadDataBase() error message is incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5.0, 3.5.1
    • 3.4.7, 3.5.2, 3.6.0
    • quorum
    • None

    Description

      in loadDataBase() method, the below info is incorrect.
      if (acceptedEpoch < currentEpoch)

      { throw new IOException("The current epoch, " + ZxidUtils.zxidToString(currentEpoch) + " is less than the accepted epoch, " + ZxidUtils.zxidToString(acceptedEpoch)); }

      It should print:
      Change the message to ("The accepted epoch, " + ZxidUtils.zxidToString(acceptedEpoch) + " is less than the current epoch, " + ZxidUtils.zxidToString(currentEpoch)

      Attachments

        1. ZOOKEEPER-2279-01.patch
          0.9 kB
          Mohammad Arshad

        Activity

          People

            arshad.mohammad Mohammad Arshad
            haitao-tony sunhaitao
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: