From e0ec8a1523d919b270741019964aa2f63fbb6bd7 Mon Sep 17 00:00:00 2001 From: "terence.yoo" Date: Fri, 29 Jul 2016 12:28:46 +0900 Subject: [PATCH] add log message --- .../src/main/java/com/kakao/hbase/manager/command/Merge.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hbase0.98/hbase-manager-0.98/src/main/java/com/kakao/hbase/manager/command/Merge.java b/hbase0.98/hbase-manager-0.98/src/main/java/com/kakao/hbase/manager/command/Merge.java index 7849469..aca63ee 100644 --- a/hbase0.98/hbase-manager-0.98/src/main/java/com/kakao/hbase/manager/command/Merge.java +++ b/hbase0.98/hbase-manager-0.98/src/main/java/com/kakao/hbase/manager/command/Merge.java @@ -313,7 +313,10 @@ private List findEmptyRegionsInternal(TableInfo tableInfo) throws E Set 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(