Re: [ovs-dev] [PATCH 4/5] ovsdb: raft: Fix assertion when 1-node cluster looses leadership.

2024-03-25 Thread Han Zhou
On Fri, Mar 15, 2024 at 1:15 PM Ilya Maximets wrote: > > Some of the failure tests can make a single-node cluster to > loose leadership. In this case the next raft_run() will > trigger election with a pre-vore enabled. This is causing s/pre-vore/pre-vote > an assertion when this server attempt

[ovs-dev] [PATCH 4/5] ovsdb: raft: Fix assertion when 1-node cluster looses leadership.

2024-03-15 Thread Ilya Maximets
Some of the failure tests can make a single-node cluster to loose leadership. In this case the next raft_run() will trigger election with a pre-vore enabled. This is causing an assertion when this server attempts to vote for itself. Fix that by not using pre-voting if the is only one server. A