HBASE-13061 RegionStates can remove wrong region from server holdings (Andrey Stepachev)
This commit is contained in:
parent
7b045d143a
commit
d64ce31063
|
@ -426,7 +426,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