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

Fix the log statement in FastLeaderElection

    XMLWordPrintableJSON

Details

    Description

      The proposedZxid and proposedEpoch is out of order in the following debug statement.

      
       LOG.debug(
                      "Sending Notification: {} (n.leader),  0x{} (n.peerEpoch), 0x{} (n.zxid), 0x{} (n.round), {} (recipient),"+underlined text+
                          + " {} (myid) ",
                      proposedLeader,
                      Long.toHexString(proposedZxid),
                      Long.toHexString(proposedEpoch),
                      Long.toHexString(logicalclock.get()),
                      sid,
                      self.getMyId());
      
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              li4wang Li Wang
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 0.5h
                  0.5h