From 069b77e0f941a5b752632cd590abb6ac7ecf002c Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Fri, 7 Aug 2009 20:41:47 +0000 Subject: [PATCH] Made message on empty or null regioninfo richer git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@802176 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/hadoop/hbase/client/HConnectionManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java b/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java index 23e04c34cdb..4534d6602ee 100644 --- a/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java +++ b/src/java/org/apache/hadoop/hbase/client/HConnectionManager.java @@ -573,12 +573,11 @@ public class HConnectionManager implements HConstants { if (regionInfoRow == null) { throw new TableNotFoundException(Bytes.toString(tableName)); } - byte [] value = regionInfoRow.getValue(CATALOG_FAMILY, REGIONINFO_QUALIFIER); if (value == null || value.length == 0) { throw new IOException("HRegionInfo was null or empty in " + - Bytes.toString(parentTable)); + Bytes.toString(parentTable) + ", " + regionInfoRow); } // convert the row result into the HRegionLocation we need! HRegionInfo regionInfo = (HRegionInfo) Writables.getWritable(