HBASE-23983 Fixed Spotbugs complaint in RegionStates related to ignored return value
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
84977eeebb
commit
aa966e354a
|
@ -129,7 +129,11 @@ public class RegionStates {
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue