Skip to content

Commit

Permalink
resolving findbug
Browse files Browse the repository at this point in the history
  • Loading branch information
virajjasani committed Oct 26, 2019
1 parent 76f6947 commit e52c85e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ protected void chore() {
final Map<TableName, List<HRegionInfo>> tableToReopenRegionsMap =
getTableToRegionsByRefCount(serverMetricsMap);
if (MapUtils.isNotEmpty(tableToReopenRegionsMap)) {
for (TableName tableName : tableToReopenRegionsMap.keySet()) {
List<HRegionInfo> hRegionInfos = tableToReopenRegionsMap.get(tableName);
for (Map.Entry<TableName, List<HRegionInfo>> tableRegionEntry :
tableToReopenRegionsMap.entrySet()) {
TableName tableName = tableRegionEntry.getKey();
List<HRegionInfo> hRegionInfos = tableRegionEntry.getValue();
try {
LOG.warn("Reopening regions due to high storeFileRefCount. " +
"TableName: {} , noOfRegions: {}", tableName, hRegionInfos.size());
Expand Down

0 comments on commit e52c85e

Please sign in to comment.