[ovs-dev] [PATCH 1/3] raft.c: Election timer initial reset with value from log.

Ben Pfaff blp at ovn.org
Fri Aug 23 21:43:45 UTC 2019


On Thu, Aug 22, 2019 at 02:08:21PM -0700, Han Zhou wrote:
> From: Han Zhou <hzhou8 at ebay.com>
> 
> After election timer is changed through cluster/change-election-timer
> command, if a server restarts, it firstly initializes with the default
> value and use it to reset the timer. Although it reads the latest
> timer value later from the log, the first timeout may be much shorter
> than expected by other servers that use latest timeout, and it would
> start election before it receives the first heartbeat from the leader.
> 
> This patch fixes it by changing the order of reading log and resetting
> timer so that the latest value is read from the log before the initial
> resetting of the timer.
> 
> Fixes: commit 8e35461 ("ovsdb raft: Support leader election time change online.")
> Signed-off-by: Han Zhou <hzhou8 at ebay.com>

Thanks for the fixes.

I applied these to master and branch-2.12.


More information about the dev mailing list