From 5af490cb6bed065dee0d0e8c2984f2090919fcdf Mon Sep 17 00:00:00 2001 From: Todd Lipcon Date: Thu, 1 Sep 2011 21:14:08 +0000 Subject: [PATCH] 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 --- CHANGES.txt | 2 ++ .../org/apache/hadoop/hbase/master/AssignmentManager.java | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index aadef53b7ed..faa7e58465f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 diff --git a/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java b/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java index a5562392faf..13af86a035c 100644 --- a/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java +++ b/src/main/java/org/apache/hadoop/hbase/master/AssignmentManager.java @@ -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() +