Skip to content

Commit

Permalink
HBASE-23983 Fixed Spotbugs complaint in RegionStates related to ignor…
Browse files Browse the repository at this point in the history
…ed return value

Signed-off-by: Duo Zhang <[email protected]>
  • Loading branch information
HorizonNet authored and ndimiduk committed Mar 3, 2023
1 parent 0c85952 commit 6bc84de
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ RegionStateNode createRegionStateNode(RegionInfo regionInfo) {
synchronized (regionsMapLock) {
RegionStateNode node = regionsMap.computeIfAbsent(regionInfo.getRegionName(),
key -> new RegionStateNode(regionInfo, regionInTransition));
encodedRegionsMap.putIfAbsent(regionInfo.getEncodedName(), node);

if (encodedRegionsMap.get(regionInfo.getEncodedName()) != node) {
encodedRegionsMap.put(regionInfo.getEncodedName(), node);
}

return node;
}
}
Expand Down

0 comments on commit 6bc84de

Please sign in to comment.