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:
parent
ee1cfcc1df
commit
0482a811e6
|
@ -763,6 +763,8 @@ Release 0.90.0 - Unreleased
|
||||||
HBASE-3278 AssertionError in LoadBalancer
|
HBASE-3278 AssertionError in LoadBalancer
|
||||||
HBASE-3318 Split rollback leaves parent with writesEnabled=false
|
HBASE-3318 Split rollback leaves parent with writesEnabled=false
|
||||||
HBASE-3334 Refresh our hadoop jar because of HDFS-1520
|
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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -495,9 +495,10 @@ public class HConnectionManager {
|
||||||
this.tableName = tableName;
|
this.tableName = tableName;
|
||||||
}
|
}
|
||||||
public boolean processRow(Result rowResult) throws IOException {
|
public boolean processRow(Result rowResult) throws IOException {
|
||||||
HRegionInfo info = Writables.getHRegionInfo(
|
HRegionInfo info = Writables.getHRegionInfoOrNull(
|
||||||
rowResult.getValue(HConstants.CATALOG_FAMILY,
|
rowResult.getValue(HConstants.CATALOG_FAMILY,
|
||||||
HConstants.REGIONINFO_QUALIFIER));
|
HConstants.REGIONINFO_QUALIFIER));
|
||||||
|
if (info == null) return true;
|
||||||
HTableDescriptor desc = info.getTableDesc();
|
HTableDescriptor desc = info.getTableDesc();
|
||||||
if (Bytes.compareTo(desc.getName(), tableName) == 0) {
|
if (Bytes.compareTo(desc.getName(), tableName) == 0) {
|
||||||
result = desc;
|
result = desc;
|
||||||
|
|
Loading…
Reference in New Issue