From 760d29ace18f2a0c364a81e2ed6759c4e99f56ca Mon Sep 17 00:00:00 2001 From: Wellington Chevreuil Date: Fri, 6 Jan 2023 10:43:04 +0000 Subject: [PATCH] switching from wait to sleep and removing syncrhonized block Change-Id: I282045d8d24ccc7ca5f25fd70e3ee1527adec6db --- .../hbase/master/assignment/TransitRegionStateProcedure.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/TransitRegionStateProcedure.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/TransitRegionStateProcedure.java index 09763c7d80c6..65431db3561a 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/TransitRegionStateProcedure.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/assignment/TransitRegionStateProcedure.java @@ -228,9 +228,7 @@ private void checkAndWaitForOriginalServer(ServerName lastHost) long retries = 0; while (!isOnline && retries < forceRegionRetainmentRetries) { try { - synchronized (this) { - wait(forceRegionRetainmentWait); - } + Thread.sleep(forceRegionRetainmentWait); } catch (InterruptedException e) { throw new ProcedureSuspendedException(); }