Failed chunks should move offset backwards 32/82732/1
authorTomas Cere <tomas.cere@pantheon.tech>
Tue, 25 Jun 2019 08:45:15 +0000 (10:45 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 26 Jun 2019 08:27:14 +0000 (08:27 +0000)
commit5a650a307d97b54ba07e0861bd2548a6d31cac62
treee8007fc51551865c836fa39c486bbe14a56296e2
parent6724dddb6faaed11a6f7e1d2fa701e0ba6b92bb2
Failed chunks should move offset backwards

If a chunk has failed it needs to move the offset backwards,
otherwise this would misalign the stream, or make it possible
to call sendNextChunk() right after resend which could be
seen as the chunkTimer attempted to be started while already running.

Change-Id: I6d44195ae9bcb23075ffea9c4f1d1ab1d0540c93
Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
(cherry picked from commit 6d4d0642f80555c2b5c8d2ff87681b600a22b4a0)
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/behaviors/LeaderInstallSnapshotState.java