Skip to content

Commit

Permalink
add log message
Browse files Browse the repository at this point in the history
  • Loading branch information
terence-yoo committed Jul 29, 2016
1 parent ff4ffc2 commit e0ec8a1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,10 @@ private List<HRegionInfo> findEmptyRegionsInternal(TableInfo tableInfo) throws E
Set<HRegionInfo> allTableRegions = tableInfo.getRegionInfoSet();
for (HRegionInfo regionInfo : allTableRegions) {
RegionLoadDelegator regionLoad = tableInfo.getRegionLoad(regionInfo);
if (regionLoad == null) throw new IllegalStateException(Constant.MESSAGE_NEED_REFRESH);
if (regionLoad == null) {
Util.printMessage("RegionLoad is empty - " + regionInfo);
throw new IllegalStateException(Constant.MESSAGE_NEED_REFRESH);
}

if (regionLoad.getStorefileSizeMB() == 0 && regionLoad.getMemStoreSizeMB() == 0) {
executorService.execute(
Expand Down

0 comments on commit e0ec8a1

Please sign in to comment.