Remove the leader's FollowerLogInformation on RemoveServer 02/33002/2
authorTom Pantelis <tpanteli@brocade.com>
Mon, 18 Jan 2016 09:03:58 +0000 (04:03 -0500)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 20 Jan 2016 19:33:15 +0000 (19:33 +0000)
commitf1e4796a07ad925697db5e3b672e2b46980cd408
tree725461c32c751654b8648ca187b1f3e1010d5f3a
parent1e8c4ac81392d39b2a9b37dcbedffc6bc6446446
Remove the leader's FollowerLogInformation on RemoveServer

On RemoveServer, if removing follower, we need to also remove the
FollowerLogInformation entry from the followerToLog map in
AbstractLeader. Also, if a snapshot was being installed, we should
cleanup the mapFollowerToSnapshot.

Change-Id: I37df57a82a1c79ce375e48127bafd661a2dfe2c6
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorServerConfigurationSupport.java
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/behaviors/AbstractLeader.java
opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/RaftActorServerConfigurationSupportTest.java