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/12/23 17:07:48 UTC

[GitHub] [hbase] saintstack commented on a change in pull request #960: HBASE-23613 ProcedureExecutor check StuckWorkers blocked by DeadServe…

saintstack commented on a change in pull request #960: HBASE-23613 ProcedureExecutor check StuckWorkers blocked by DeadServe…
URL: https://github.com/apache/hbase/pull/960#discussion_r360949342
 
 

 ##########
 File path: hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/AssignmentManager.java
 ##########
 @@ -1176,15 +1176,9 @@ protected void periodicExecute(final MasterProcedureEnv env) {
         if (rsn.getState() != State.OPEN) {
           continue; // Opportunistic check, should quickly skip RITs, offline tables, etc.
         }
-        ServerName sn;
-        State state;
-        rsn.lock();
-        try {
-          sn = rsn.getRegionLocation();
-          state = rsn.getState();
-        } finally {
-          rsn.unlock();
-        }
+        // Should not acquire region stat lock, this may block other important work, see HBASE-23613.
+        ServerName sn = rsn.getRegionLocation();
+        State state = rsn.getState();
 
 Review comment:
   This is metrics. The state and servername in RSN are both volatile. I think this change is good.

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