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

GitHub noreply at github.com
Tue Sep 18 13:47:20 UTC 2018


  Branch: refs/heads/branch-2.10
  Home:   https://github.com/openvswitch/ovs
  Commit: 2aa83f504bb97d8d59944ac39047a0dfecb217aa
      https://github.com/openvswitch/ovs/commit/2aa83f504bb97d8d59944ac39047a0dfecb217aa
  Author: Numan Siddique <nusiddiq at redhat.com>
  Date:   2018-09-18 (Tue, 18 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
process_notification().

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