diff --git hbase-client/src/main/java/org/apache/hadoop/hbase/client/MetaCache.java hbase-client/src/main/java/org/apache/hadoop/hbase/client/MetaCache.java index b76e4c6..465ff6c 100644 --- hbase-client/src/main/java/org/apache/hadoop/hbase/client/MetaCache.java +++ hbase-client/src/main/java/org/apache/hadoop/hbase/client/MetaCache.java @@ -336,6 +336,9 @@ public class MetaCache { TableName tableName = location.getRegionInfo().getTable(); ConcurrentMap tableLocations = getTableLocations(tableName); RegionLocations rll = tableLocations.get(location.getRegionInfo().getStartKey()); + if (rll == null) { + return; + } RegionLocations updatedLocations = rll.remove(location); if (updatedLocations.isEmpty()) { tableLocations.remove(location.getRegionInfo().getStartKey(), rll);