[
https://issues.apache.org/jira/browse/HBASE-25673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anoop Sam John updated HBASE-25673:
-----------------------------------
Description:
{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 this master's node id.
was:
{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.
> 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
> Priority: Minor
>
> {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 this master's node id.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)