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:
binlijin 2019-12-25 09:56:48 +08:00 committed by GitHub
parent ee19008b12
commit 9ff2507303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 9 deletions

View File

@ -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.
}