You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Anoop Sam John (Jira)" <ji...@apache.org> on 2021/03/17 08:15:00 UTC

[jira] [Created] (HBASE-25673) Wrong log regarding current active master at ZKLeaderManager#waitToBecomeLeader

Anoop Sam John created HBASE-25673:
--------------------------------------

             Summary: Wrong log regarding current active master at ZKLeaderManager#waitToBecomeLeader
                 Key: HBASE-25673
                 URL: https://issues.apache.org/jira/browse/HBASE-25673
             Project: HBase
          Issue Type: Bug
            Reporter: Anoop Sam John
            Assignee: Anoop Sam John


{code}
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);
}
{code}
Existing id, read from ZK, is currentId. But by mistake we log 'nodeId' which is the current master node id.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)