HBASE-24797 Move log code out of loop

Closes #2175

Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
ddupg 2020-07-30 15:07:34 +05:30 committed by Viraj Jasani
parent 06236dbfcc
commit 13f9f7a2c1
No known key found for this signature in database
GPG Key ID: B3D6C0B41C8ADFD5

View File

@ -1945,12 +1945,12 @@ public class HMaster extends HRegionServer implements MasterServices {
mergePlanCount++; mergePlanCount++;
} }
} }
}
int totalPlansSubmitted = submittedPlanProcIds.size(); int totalPlansSubmitted = submittedPlanProcIds.size();
if (totalPlansSubmitted > 0 && LOG.isDebugEnabled()) { if (totalPlansSubmitted > 0 && LOG.isDebugEnabled()) {
LOG.debug("Normalizer plans submitted. Total plans count: {} , procID list: {}", LOG.debug("Normalizer plans submitted. Total plans count: {} , procID list: {}",
totalPlansSubmitted, submittedPlanProcIds); totalPlansSubmitted, submittedPlanProcIds);
} }
}
} finally { } finally {
normalizationInProgressLock.unlock(); normalizationInProgressLock.unlock();
} }