HBASE-14885 NullPointerException in HMaster#normalizeRegions() due to missing TableDescriptor

This commit is contained in:
tedyu 2015-11-25 16:08:49 -08:00
parent 30604761c4
commit 06c233834f
1 changed files with 2 additions and 1 deletions

View File

@ -1356,7 +1356,8 @@ public class HMaster extends HRegionServer implements MasterServices, Server {
LOG.debug("Skipping normalizing " + table + " since its namespace has quota");
continue;
}
if (table.isSystemTable() || !getTableDescriptors().get(table).isNormalizationEnabled()) {
if (table.isSystemTable() || (getTableDescriptors().get(table) != null &&
!getTableDescriptors().get(table).isNormalizationEnabled())) {
LOG.debug("Skipping normalization for table: " + table + ", as it's either system"
+ " table or doesn't have auto normalization turned on");
continue;