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
0c85952a8f
commit
6bc84de563
|
@ -126,7 +126,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