Bug 4114 - netconf connector replace causes transaction chain failure 79/32579/2
authoradetalhouet <adetalhouet@inocybe.com>
Thu, 14 Jan 2016 13:53:41 +0000 (08:53 -0500)
committeradetalhouet <adetalhouet@inocybe.com>
Thu, 14 Jan 2016 13:57:16 +0000 (08:57 -0500)
commit76cce56c2bf85efde7f360f2af779a75b57141ee
treeea583b00483e7810e0e2552edf44b9e565ff26d6
parent9cb58cc42d98ebb76c6113831ccd3b50d2736987
Bug 4114 - netconf connector replace causes transaction chain failure

In order to avoid race condition when txChain perform delete then write
transactions in a row to the same path, perfom the delete as a blocking
transaction so once done, write can be perform without any race condition

Also reset the txChain after a failure.

Change-Id: If0c51be8fe80106a6722abb93dbe4b47548fce1b
Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
opendaylight/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceDatastoreAdapter.java
opendaylight/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceSalProvider.java
opendaylight/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceTopologyAdapter.java
opendaylight/netconf/sal-netconf-connector/src/test/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceTopologyAdapterTest.java