HBASE-1284 drop table drops all disabled tables
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@758227 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
99d68d7d45
commit
89c5b7c524
|
@ -58,6 +58,7 @@ Release 0.20.0 - Unreleased
|
|||
HBASE-1274 TestMergeTable is broken in Hudson (Nitay Joffe via Stack)
|
||||
HBASE-1283 thrift's package descrpition needs to update for start/stop
|
||||
procedure (Rong-en Fan via Stack)
|
||||
HBASE-1284 drop table drops all disabled tables
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-1089 Add count of regions on filesystem to master UI; add percentage
|
||||
|
|
|
@ -44,7 +44,6 @@ class TableDelete extends TableOperation {
|
|||
@Override
|
||||
protected void processScanItem(String serverName,
|
||||
final HRegionInfo info) throws IOException {
|
||||
|
||||
if (isEnabled(info)) {
|
||||
throw new TableNotDisabledException(tableName);
|
||||
}
|
||||
|
@ -54,6 +53,10 @@ class TableDelete extends TableOperation {
|
|||
protected void postProcessMeta(MetaRegion m, HRegionInterface server)
|
||||
throws IOException {
|
||||
for (HRegionInfo i: unservedRegions) {
|
||||
if (!Bytes.equals(this.tableName, i.getTableDesc().getName())) {
|
||||
// Don't delete regions that are not from our table.
|
||||
continue;
|
||||
}
|
||||
// Delete the region
|
||||
try {
|
||||
HRegion.removeRegionFromMETA(server, m.getRegionName(), i.getRegionName());
|
||||
|
|
Loading…
Reference in New Issue