Remove the leader's FollowerLogInformation on RemoveServer 27/33027/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:23 +0000 (19:33 +0000)
commitc7efc0a0204795df14a6fe1055a8dd0e273a6e3f
treea6fd85ba5fff92824c80d108d6587349a6dfc968
parent6ee773bba778ce80a1008875f0a3d28b81817676
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