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
This commit is contained in:
Michael Stack 2009-08-07 20:41:47 +00:00
parent 7b355d83c5
commit 069b77e0f9
1 changed files with 1 additions and 2 deletions

View File

@ -573,12 +573,11 @@ public class HConnectionManager implements HConstants {
if (regionInfoRow == null) { if (regionInfoRow == null) {
throw new TableNotFoundException(Bytes.toString(tableName)); throw new TableNotFoundException(Bytes.toString(tableName));
} }
byte [] value = regionInfoRow.getValue(CATALOG_FAMILY, byte [] value = regionInfoRow.getValue(CATALOG_FAMILY,
REGIONINFO_QUALIFIER); REGIONINFO_QUALIFIER);
if (value == null || value.length == 0) { if (value == null || value.length == 0) {
throw new IOException("HRegionInfo was null or empty in " + 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! // convert the row result into the HRegionLocation we need!
HRegionInfo regionInfo = (HRegionInfo) Writables.getWritable( HRegionInfo regionInfo = (HRegionInfo) Writables.getWritable(