HBASE-13061 RegionStates can remove wrong region from server holdings (Andrey Stepachev)
This commit is contained in:
parent
0004aeea80
commit
ac49c8d3e9
|
@ -466,7 +466,9 @@ public class RegionStates {
|
|||
if (oldServerName == null) {
|
||||
oldServerName = oldAssignments.remove(encodedName);
|
||||
}
|
||||
if (oldServerName != null && serverHoldings.containsKey(oldServerName)) {
|
||||
if (oldServerName != null
|
||||
&& !oldServerName.equals(serverName)
|
||||
&& serverHoldings.containsKey(oldServerName)) {
|
||||
LOG.info("Offlined " + hri.getShortNameToLog() + " from " + oldServerName);
|
||||
removeFromServerHoldings(oldServerName, hri);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue