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

Wrong log regarding current active master at ZKLeaderManager#waitToBecomeLeader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.5.0
    • None
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: