Fix DeleteEntries persisting with wrong index 03/89703/5
authortadei.bilan <tadei.bilan@pantheon.tech>
Tue, 12 May 2020 14:03:37 +0000 (17:03 +0300)
committerRobert Varga <nite@hq.sk>
Tue, 19 May 2020 08:40:18 +0000 (08:40 +0000)
commit45481ba83a3f698f1127f15b02f4c5aaa4081ad5
treef4448edf766ab4b82cd43cd72701b1618d656b39
parent0b05056b9ef1b6fc18f4722e30fc159211f1578b
Fix DeleteEntries persisting with wrong index

During persisting we delete entries, so in case of persisting DeleteEntries with adjusted index,
 index is being adjusted twice, that results in additional entries being deleted during recovery.

JIRA: CONTROLLER-1934

Signed-off-by: tadei.bilan <tadei.bilan@pantheon.tech>
Change-Id: Ib326f02630281ed52982dab2f48c01503b791ef7
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ReplicatedLogImpl.java
opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/RecoveryIntegrationTest.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.