Bug 5460: Fix snaphots on follower 04/36304/2
authorTom Pantelis <tpanteli@brocade.com>
Tue, 15 Mar 2016 23:51:58 +0000 (19:51 -0400)
committerGerrit Code Review <gerrit@opendaylight.org>
Thu, 24 Mar 2016 19:23:26 +0000 (19:23 +0000)
commitc5280b90df2befa159c4e8fdb5f588e57de70ebc
tree7ff44c9dd4214c7c05c470894dfd534aa3b7bdf2
parent29f8ac5fe0cc867e9656772b3ddc4d54c8641729
Bug 5460: Fix snaphots on follower

Added a callback to the appendAndPersist call in Follower to call
captureSnapshotIfReady.

Added checks in ReplicationAndSnapshotsIntegrationTest to verify the
followers snapshot along with the leader.

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