HBASE-23613 ProcedureExecutor check StuckWorkers blocked by DeadServe… (#960)
Signed-off-by: stack <stack@apache.org> Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
ee19008b12
commit
9ff2507303
|
@ -1176,15 +1176,9 @@ public class AssignmentManager {
|
|||
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();
|
||||
}
|
||||
// Do not need to acquire region state lock as this is only for showing metrics.
|
||||
ServerName sn = rsn.getRegionLocation();
|
||||
State state = rsn.getState();
|
||||
if (state != State.OPEN) {
|
||||
continue; // Mostly skipping RITs that are already being take care of.
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue