[ovs-dev] [PATCH 2/2] ovsdb raft: Fix the problem when cluster restarted after DB compaction.

Ben Pfaff blp at ovn.org
Fri Dec 20 21:02:22 UTC 2019


On Tue, Dec 03, 2019 at 05:57:20PM -0800, Han Zhou wrote:
> Cluster doesn't work after all nodes restarted after DB compaction,
> unless there is any transaction after DB compaction before the restart.
> 
> Error log is like:
> raft|ERR|internal error: deferred vote_request message completed but not ready
> to send because message index 9 is past last synced index 0: s2 vote_request:
> term=6 last_log_index=9 last_log_term=4
> 
> The root cause is that the log_synced member is not initialized when
> reading the raft header. This patch fixes it and remove the XXX
> from the test case.
> 
> Signed-off-by: Han Zhou <hzhou at ovn.org>

Thank you for finding this bug!  It must have been subtle.

I applied both of these patches to master and branch-2.12.

Thanks again,

Ben.


More information about the dev mailing list