Inventory Cleanup fails as txn could not be created 77/28977/5
authorKamal Rameshan <kramesha@cisco.com>
Sun, 4 Oct 2015 07:15:18 +0000 (00:15 -0700)
committerKamal Rameshan <kramesha@cisco.com>
Wed, 11 Nov 2015 21:20:14 +0000 (13:20 -0800)
commit42da3e7183869d6f32df7f31da33cfc4b2205917
tree42b0e00bb16ee158e00daffa725949e5684fd612
parent0101f06d582b42003ef6c6b216c455c0f4198a24
Inventory Cleanup fails as txn could not be created

Cleanup of the inventory is done post closure of txn manager.

Hence if the status of the txn manager is shutting-down, get the WriteTx directly
to perform a datastore cleanup

Change-Id: If9dc9449f7e54e54ea4159376217297f6998e289
Signed-off-by: Kamal Rameshan <kramesha@cisco.com>
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/device/DeviceContextImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/device/TransactionChainManager.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/device/DeviceContextImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/device/DeviceTransactionChainManagerProviderTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/device/TransactionChainManagerTest.java