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:
parent
7b355d83c5
commit
069b77e0f9
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue