Bug 8606: Continue leadership transfer on pauseLeader timeout 94/58794/2
authorTom Pantelis <tompantelis@gmail.com>
Mon, 12 Jun 2017 13:42:38 +0000 (09:42 -0400)
committerRobert Varga <nite@hq.sk>
Tue, 13 Jun 2017 10:19:25 +0000 (10:19 +0000)
commit92308eaeb2a32ce90bee14890d1e381d7189ad8b
treec9475ab8e4cdc67d2ca779303362b5c4b5477f47
parent872a40f7ac1f2e14a5848329c0827f1265931f6e
Bug 8606: Continue leadership transfer on pauseLeader timeout

Modified it to continue with leadership transfer if pauseLeader times out
instead of aborting. The shard may have a lot of transactions queued up
which it can't finish in time but there may still be a follower that is
caught up (ie whose matchIndex equals the leader's lastIndex) or would be
caught up if leadership transfer continued. Worst case is no follower is
available and the "catch up" phase of leadership transfer also times out
which would lengthen shut down time but that should be fine.

Change-Id: I1ec1ef43bb556e50416bb7239ce3c267265db9b3
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
(cherry picked from commit dac16f0d464eff3325b3800a803e81b303964e4b)
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorLeadershipTransferCohort.java
opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/RaftActorLeadershipTransferCohortTest.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.