[ovs-dev] [PATCH 5/5] ovsdb-idl: Tolerate initialization races for singleton tables.

Alin Serdean aserdean at cloudbasesolutions.com
Mon Dec 11 22:30:46 UTC 2017



> -----Original Message-----
> From: ovs-dev-bounces at openvswitch.org [mailto:ovs-dev-
> bounces at openvswitch.org] On Behalf Of Ben Pfaff
> Sent: Friday, December 8, 2017 11:25 PM
> To: dev at openvswitch.org
> Cc: Ben Pfaff <blp at ovn.org>
> Subject: [ovs-dev] [PATCH 5/5] ovsdb-idl: Tolerate initialization races for
> singleton tables.
> 
> By verifying that singleton tables (that is, tables that should have exactly one
> row) are empty when they emit transactions that insert into them, ovs-vsctl
> and similar tools tolerate initialization races, where more than one client at a
> time tries to initialize a singleton table.
> 
> The upshot is that if you create a database and then run multiple ovs-vsctl
> (etc.) commands against it in parallel (without first initializing it serially), then
> without this patch sometimes you will sometimes get failures but this patch
> avoids them.
> 
> Signed-off-by: Ben Pfaff <blp at ovn.org>
> ---
I ran some tests and all the unit tests. Seems ok to me.

Acked-by: Alin Gabriel Serdean <aserdean at ovn.org>


More information about the dev mailing list