[ovs-git] [openvswitch/ovs] 9bfb28: ovsdb raft: Fix election timer parsing in snapshot...

Han Zhou noreply at github.com
Thu Nov 21 18:54:01 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 9bfb280a1705b4daa51daf9c3a66f3a67a9f0f7d
      https://github.com/openvswitch/ovs/commit/9bfb280a1705b4daa51daf9c3a66f3a67a9f0f7d
  Author: Han Zhou <hzhou at ovn.org>
  Date:   2019-11-21 (Thu, 21 Nov 2019)

  Changed paths:
    M ovsdb/raft-rpc.c
    M ovsdb/raft.c
    M tests/ovsdb-cluster.at

  Log Message:
  -----------
  ovsdb raft: Fix election timer parsing in snapshot RPC.

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>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list