You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2019/11/11 17:09:20 UTC

[GitHub] [hbase] bharathv commented on a change in pull request #812: HBASE-23275: Track active master's address in ActiveMasterManager

bharathv commented on a change in pull request #812: HBASE-23275: Track active master's address in ActiveMasterManager
URL: https://github.com/apache/hbase/pull/812#discussion_r344813576
 
 

 ##########
 File path: hbase-server/src/main/java/org/apache/hadoop/hbase/master/ActiveMasterManager.java
 ##########
 @@ -178,10 +214,14 @@ boolean blockUntilBecomingActiveMaster(
           // We are the master, return
           startupStatus.setStatus("Successfully registered as active master.");
           this.clusterHasActiveMaster.set(true);
+          activeMasterServerName.set(sn);
           LOG.info("Registered as active master=" + this.sn);
           return true;
         }
 
+        // Invalidate the active master name so that subsequent requests do not get any stale
+        // master information. Will ne re-fetched if needed.
 
 Review comment:
   will fix this in next patch set, thanks for catching.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services