[ovs-dev] [PATCH] ovsdb raft: Fix election timer parsing in snapshot RPC.

Ben Pfaff blp at ovn.org
Thu Nov 21 19:00:10 UTC 2019


On Thu, Nov 21, 2019 at 10:57:41AM -0800, Han Zhou wrote:
> On Thu, Nov 21, 2019 at 10:54 AM Ben Pfaff <blp at ovn.org> wrote:
> >
> > On Wed, Nov 13, 2019 at 09:33:59AM -0800, Han Zhou wrote:
> > > Commit a76ba825 took care of saving and restoring election timer in
> > > file header snapshot, but it didn't handle the parsing of election
> > > timer in install_snapshot_request/reply RPC, which results in problems,
> > > e.g. when election timer change log is compacted in snapshot and then a
> > > new node join the cluster, the new node will use the default timer
> > > instead of the new value.  This patch fixed it by parsing election
> > > timer in snapshot RPC.
> > >
> > > At the same time the patch updates the test case to cover the DB
> compact and
> > > join senario. The test reveals another 2 problems related to clustered
> DB
> > > compact, as commented in the test case's XXX, which need to be addressed
> > > separately.
> > >
> > > Signed-off-by: Han Zhou <hzhou at ovn.org>
> >
> > I applied this to master.  Thank you!
> 
> Thanks Ben! Could you help backport to 2.12?

Done.


More information about the dev mailing list