Do not bump follower term while it is isolated 63/89863/3
authorTomas Cere <tomas.cere@pantheon.tech>
Fri, 22 May 2020 11:11:04 +0000 (13:11 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 25 May 2020 09:20:47 +0000 (09:20 +0000)
commitd3d04140ac3d7a2a90a3b953cc4ea27fca2bfc32
tree81f2657300837bec6843442dc6fede8eb0482bfa
parent0175a376323f6c916b5a4340a27751ebef22fc83
Do not bump follower term while it is isolated

When a follower gets into a state that its isolated(ie cannot reach either peer)
it starts bumping its term every election timeout. Once the cluster heals it
would then disrupt the cluster because it has a higher term then the healthy part.
We can avoid this by not triggering new elections on followers that cannot
reach other peers while they are unreachable.

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