For controller initiated connection, there is race condition
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 21:40:40 +0000 (03:10 +0530)
commit000a37bc690c40cdb0eec2f6d80757f8cea339f5
treefaf75661c84c40cdbf7592ba8f241a8a58ffec90
parent376b2e4b204ae60c8a902cbe9bb4900841e1de5b
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.

Change-Id: I3861b5f2907d08709a3bd1aa4f4ecfbfd444351d
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>