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/05/14 01:45:49 UTC

[GitHub] [hbase] Apache9 commented on a change in pull request #237: HBASE-22408 add dead and unknown server open regions metric to AM 01

Apache9 commented on a change in pull request #237: HBASE-22408 add dead and unknown server open regions metric to AM 01
URL: https://github.com/apache/hbase/pull/237#discussion_r283596569
 
 

 ##########
 File path: hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java
 ##########
 @@ -620,8 +620,9 @@ public synchronized boolean expireServer(final ServerName serverName) {
     }
   }
 
+  /** This is already called from a synchronized method, so synch is for visibility sake. */
   @VisibleForTesting
-  public void moveFromOnlineToDeadServers(final ServerName sn) {
+  public synchronized void moveFromOnlineToDeadServers(final ServerName sn) {
 
 Review comment:
   Please remove the duplicated synchronized modifier, as there is an VisibleForTesting annotation which means this method will only be called inside the class, and we have synchronized in side the method, which will make others confusing?

----------------------------------------------------------------
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