[ovs-git] [openvswitch/ovs] dea071: ovsdb-server: Alleviate the possible data loss in ...
noreply at github.com
Tue Sep 18 13:47:27 UTC 2018
Author: Numan Siddique <nusiddiq at redhat.com>
Date: 2018-09-18 (Tue, 18 Sep 2018)
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>
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