taklwu commented on code in PR #4945: URL: https://github.com/apache/hbase/pull/4945#discussion_r1062821780
########## hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/TransitRegionStateProcedure.java: ########## @@ -188,6 +222,27 @@ protected boolean waitInitialized(MasterProcedureEnv env) { return am.waitMetaLoaded(this) || am.waitMetaAssigned(this, getRegion()); } + private void checkAndWaitForOriginalServer(ServerName lastHost) + throws ProcedureSuspendedException { + boolean isOnline = serverManager.findServerWithSameHostnamePortWithLock(lastHost) != null; + long retries = 0; + while (!isOnline && retries < forceRegionRetainmentRetries) { + try { + synchronized (this) { Review Comment: does it mean there may have multiple procedure tries to use this `checkAndWaitForOriginalServer` ? -- 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. To unsubscribe, e-mail: issues-unsubscr...@hbase.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org