[ovs-git] [openvswitch/ovs] ecf44d: ovsdb-server: Alleviate the possible data loss in ...

GitHub noreply at github.com
Tue Sep 18 08:10:32 UTC 2018

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: ecf44dd3b26904edf480ada1c72a22fadb6b1825
  Author: Numan Siddique <nusiddiq at redhat.com>
  Date:   2018-09-17 (Mon, 17 Sep 2018)

  Changed paths:
    M ovsdb/replication.c

  Log Message:
  ovsdb-server: Alleviate the possible data loss in an active/standby setup

The present code resets the database when it is in the state -
'RPL_S_SCHEMA_REQUESTED' and repopulates the database when it
receives the monitor reply when it is in the state -
'RPL_S_MONITOR_REQUESTED'. If however, it goes to active mode
before it processes the monitor reply, the whole data is lost.

This patch alleviates the problem by resetting the database when it
receives the monitor reply (before processing it). So that
reset and repopulation of the db happens in the same state.

This approach still has a window for data loss if the function
process_notification() when processing the monitor reply fails for
some reason or ovsdb-server crashes for some reason during

Reported-by: Han Zhou <zhouhan at gmail.com>
Reported-at: https://mail.openvswitch.org/pipermail/ovs-discuss/2018-August/047161.html
Tested-by: aginwala <aginwala at ebay.com>
Acked-by: Han Zhou <zhouhan at gmail.com>
Signed-off-by: Numan Siddique <nusiddiq at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>

      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.

More information about the git mailing list