For controller initiated connection, there is race condition 15/29615/1
authorAnil Vishnoi <vishnoianil@gmail.com>
Tue, 10 Nov 2015 20:50:37 +0000 (02:20 +0530)
committerAnil Vishnoi <vishnoianil@gmail.com>
Thu, 12 Nov 2015 22:49:19 +0000 (04:19 +0530)
commite14819c34ea4817ad49a1489df687b7613d51a0e
treeac61aef349c05de8cec5c4a3e116bc9dc4b1714e
parent760c8e69516c043092115621f2450f7ea6364b67
For controller initiated connection, there is race condition
while disconnecting the device from controller, that does
not allow one of the non-owner southbound instance to disconnect
the device from the plugin. Race condition was occuring because
OvsdbConnectionInstance was not stored in the internal cache
at correct point in control flow.It gets added when EntityOwnershipChange
event happens, so when data change event for disconnection occured,
it requires OvsdbConnectionInstance to be in cache to disconnect
from the device, but OvsdbConnectionInstance was not in the cache
becuse EntityOwnershipService event was not recieved by that non-owner instance.

Conflicts:
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbConnectionManager.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/SouthboundProvider.java

Change-Id: I3861b5f2907d08709a3bd1aa4f4ecfbfd444351d
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbConnectionManager.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/SouthboundConstants.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/SouthboundProvider.java