Fixup chunk offset movement on resend 17/83317/7
authorTomas Cere <tomas.cere@pantheon.tech>
Tue, 30 Jul 2019 09:48:06 +0000 (11:48 +0200)
committerRobert Varga <nite@hq.sk>
Sat, 7 Sep 2019 06:50:26 +0000 (06:50 +0000)
commite01deeaf7005438f702f9d8531ad8d04ce635db1
tree7a7a5cae1601dfdea2fbabe1c735ccce0f06a164
parentf5f4cf3ffb6e5841a1398f365c4786d35659f5cf
Fixup chunk offset movement on resend

Since we are moving the offset backwards on failures, it doesnt
matter whether we have seen a failure or success when incrementing
offset. We always need to move it to indicate a chunk is in flight,
otherwise canSendNextChunk() will allow us to send the same chunk
again and again even when it is already inflight.

Change-Id: If5dfd1913bda4328c5dfab0869f2df697bbd3cfc
Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/behaviors/LeaderInstallSnapshotState.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.