Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-25673

Wrong log regarding current active master at ZKLeaderManager#waitToBecomeLeader

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-alpha-1, 2.5.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      byte[] currentId = ZKUtil.getDataAndWatch(watcher, leaderZNode);
      if (currentId != null && Bytes.equals(currentId, nodeId)) {
        ....
      } else {
        LOG.info("Found existing leader with ID: {}", Bytes.toStringBinary(nodeId));
        leaderExists.set(true);
      }
      

      Existing id, read from ZK, is currentId. But by mistake we log 'nodeId' which is the this master's node id.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                anoop.hbase Anoop Sam John
                Reporter:
                anoop.hbase Anoop Sam John
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: