HBASE-10871 Indefinite OPEN/CLOSE wait on busy RegionServers (Esteban)

This commit is contained in:
Jimmy Xiang 2014-06-13 08:52:09 -07:00
parent 55cecc9679
commit 92b494df45
1 changed files with 5 additions and 2 deletions

View File

@ -1582,6 +1582,9 @@ public class AssignmentManager extends ZooKeeperListener {
+ " has timed out, but the regions might"
+ " already be opened on it.", e);
}
// wait and reset the re-try count, server might be just busy.
Thread.sleep(100);
i--;
continue;
}
throw e;
@ -1992,8 +1995,8 @@ public class AssignmentManager extends ZooKeeperListener {
}
} else if (retry) {
needNewPlan = false;
LOG.warn(assignMsg + ", trying to assign to the same region server " +
"try=" + i + " of " + this.maximumAttempts, t);
i--; // we want to retry as many times as needed as long as the RS is not dead.
LOG.warn(assignMsg + ", trying to assign to the same region server due ", t);
} else {
needNewPlan = true;
LOG.warn(assignMsg + ", trying to assign elsewhere instead;" +