Fixup chunk offset movement on resend 97/84497/2
authorTomas Cere <tomas.cere@pantheon.tech>
Tue, 30 Jul 2019 09:48:06 +0000 (11:48 +0200)
committerRobert Varga <nite@hq.sk>
Sun, 22 Sep 2019 03:12:12 +0000 (03:12 +0000)
commit4c4896612227a33e8b5dda03623dd11566090d35
tree0ca02f1258c53cbe0281ced550dc8202a8aa8937
parent887d45367bdb53b3e817bcecd9a13333b8bb777d
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>
(cherry picked from commit e01deeaf7005438f702f9d8531ad8d04ce635db1)
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/behaviors/LeaderInstallSnapshotState.java