Hi, I saw that the monitored_tables are by default initialized but for some reason on x64 Debug build the monitored_tables is not empty and the server loops in this call: https://github.com/openvswitch/ovs/blob/0cedc9dbc1e4d40f975617ccf4b63cb594783443/ovsdb/replication.c#L110
If I added the replication_init call before replication_run it worked ok; even if monitored_tables global is pre-initialized I saw that it has random values inside without replication_init call. Will do some more debugging over this issue later this week and get back to you with the call-stack and behaviour. Thanks, Paul From: Cabrera Vega, Mario Alberto [mailto:[email protected]] Sent: Monday, August 1, 2016 8:08 PM To: Paul Boca Cc: [email protected] Subject: RE: Replication feature bug Hi, The replication_init() function initializes the set that contains the names of the tables to be monitored and the set that contains the names of the tables to be excluded from replication. When using the -sync-from option is not necessary to call this function since the sets are initialized by default. Since with ovs-appctl the replication can be configured after a disconnection, i.e. ovsdb-server/disconnect-remote-server, a command that destroys both sets, it's necessary to initialize the sets when trying to connect to the remote server. There is a pull request I made (https://github.com/openvswitch/ovs/pull/140) that I think would made the replication_init() function unnecessary, as well as solve a bug in which ovsdb-server crashes when executing the disconnect command multiple times. Having said that, I'm not sure why the test you are referring to is failing. Thanks, -Mario From: Paul Boca [mailto:[email protected]] Sent: Monday, August 1, 2016 2:43 AM To: Cabrera Vega, Mario Alberto <[email protected]<mailto:[email protected]>> Cc: [email protected]<mailto:[email protected]> Subject: Replication feature bug Hi! Recently on OVS master the test "ovsdb-server/get-remote-ovsdb-server" was added and on Windows (x64 Debug build) it is failing. I found that the replication module is not initialized if the ovsdb-server is started with --sync-from option: https://github.com/openvswitch/ovs/blob/master/ovsdb/ovsdb-server.c#L1451 If the replication is set using ovs-appctl, the replication is correctly initialized: https://github.com/openvswitch/ovs/blob/0cedc9dbc1e4d40f975617ccf4b63cb594783443/ovsdb/ovsdb-server.c#L1073 Thanks, Paul Boca _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
