This is an automated email from the ASF dual-hosted git repository.

anoopsamjohn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/master by this push:
     new a698b1e  HBASE-25673 Wrong log regarding current active master at 
ZKLeaderManager#waitToBecomeLeader (#3057)
a698b1e is described below

commit a698b1ea536874287bb9edaec165bcd7c794e598
Author: Anoop Sam John <anoopsamj...@gmail.com>
AuthorDate: Thu Mar 18 21:18:25 2021 +0530

    HBASE-25673 Wrong log regarding current active master at 
ZKLeaderManager#waitToBecomeLeader (#3057)
    
    Signed-off-by: Viraj Jasani <vjas...@apache.org>
    Signed-off-by: Wellington Chevreuil <wchevre...@apache.org>
---
 .../main/java/org/apache/hadoop/hbase/zookeeper/ZKLeaderManager.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKLeaderManager.java
 
b/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKLeaderManager.java
index 8460a3a..ed2f977 100644
--- 
a/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKLeaderManager.java
+++ 
b/hbase-zookeeper/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKLeaderManager.java
@@ -127,7 +127,7 @@ public class ZKLeaderManager extends ZKListener {
           ZKUtil.deleteNode(watcher, leaderZNode);
           leaderExists.set(false);
         } else {
-          LOG.info("Found existing leader with ID: {}", 
Bytes.toStringBinary(nodeId));
+          LOG.info("Found existing leader with ID: {}", 
Bytes.toStringBinary(currentId));
           leaderExists.set(true);
         }
       } catch (KeeperException ke) {

Reply via email to