This commit is contained in:
Justin Bertram 2017-10-27 08:45:02 -05:00
commit 6d8e89df9c
1 changed files with 7 additions and 2 deletions

View File

@ -202,7 +202,7 @@ public final class Topology {
sendMemberUp(nodeId, memberInput);
return true;
}
if (uniqueEventID > currentMember.getUniqueEventID()) {
if (uniqueEventID > currentMember.getUniqueEventID() || (currentMember.getLive() == null && memberInput.getLive() != null)) {
TopologyMemberImpl newMember = new TopologyMemberImpl(nodeId, memberInput.getBackupGroupName(), memberInput.getScaleDownGroupName(), memberInput.getLive(), memberInput.getBackup());
if (newMember.getLive() == null && currentMember.getLive() != null) {
@ -219,7 +219,12 @@ public final class Topology {
newMember, new Exception("trace"));
}
newMember.setUniqueEventID(uniqueEventID);
if (uniqueEventID > currentMember.getUniqueEventID()) {
newMember.setUniqueEventID(uniqueEventID);
} else {
newMember.setUniqueEventID(currentMember.getUniqueEventID());
}
topology.remove(nodeId);
topology.put(nodeId, newMember);
sendMemberUp(nodeId, newMember);