HBASE-4323 Add debug logging when AssignmentManager can't make a plan for a region.

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1164277 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Todd Lipcon 2011-09-01 21:14:08 +00:00
parent 04685c2b31
commit 5af490cb6b
2 changed files with 7 additions and 1 deletions

View File

@ -527,6 +527,8 @@ Release 0.90.5 - Unreleased
cases (todd)
HBASE-4276 AssignmentManager debug logs should be at INFO level for
META/ROOT regions (todd)
HBASE-4323 Add debug logging when AssignmentManager can't make a plan
for a region (todd)
Release 0.90.4 - August 10, 2011

View File

@ -1236,7 +1236,11 @@ public class AssignmentManager extends ZooKeeperListener {
return;
}
RegionPlan plan = getRegionPlan(state, forceNewPlan);
if (plan == null) return; // Should get reassigned later when RIT times out.
if (plan == null) {
debugLog(state.getRegion(),
"Unable to determine a plan to assign " + state);
return; // Should get reassigned later when RIT times out.
}
try {
debugLog(state.getRegion(),
"Assigning region " + state.getRegion().getRegionNameAsString() +