Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
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
- links to