HBASE-14885 NullPointerException in HMaster#normalizeRegions() due to missing TableDescriptor
This commit is contained in:
parent
30604761c4
commit
06c233834f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue