HBASE-3347 Can't truncate/disable table that has rows in .META. that have empty info:regioninfo column

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1045399 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-12-13 22:33:35 +00:00
parent ee1cfcc1df
commit 0482a811e6
2 changed files with 4 additions and 1 deletions

View File

@ -763,6 +763,8 @@ Release 0.90.0 - Unreleased
HBASE-3278 AssertionError in LoadBalancer
HBASE-3318 Split rollback leaves parent with writesEnabled=false
HBASE-3334 Refresh our hadoop jar because of HDFS-1520
HBASE-3347 Can't truncate/disable table that has rows in .META. that have empty
info:regioninfo column

View File

@ -495,9 +495,10 @@ public class HConnectionManager {
this.tableName = tableName;
}
public boolean processRow(Result rowResult) throws IOException {
HRegionInfo info = Writables.getHRegionInfo(
HRegionInfo info = Writables.getHRegionInfoOrNull(
rowResult.getValue(HConstants.CATALOG_FAMILY,
HConstants.REGIONINFO_QUALIFIER));
if (info == null) return true;
HTableDescriptor desc = info.getTableDesc();
if (Bytes.compareTo(desc.getName(), tableName) == 0) {
result = desc;