Bug 4114 - netconf connector replace causes transaction chain failure 69/34569/1
authoradetalhouet <adetalhouet@inocybe.com>
Thu, 14 Jan 2016 13:53:41 +0000 (08:53 -0500)
committerTomas Cere <tcere@cisco.com>
Fri, 12 Feb 2016 16:55:06 +0000 (16:55 +0000)
commit7e9348265c68a568cb4a133bb0b63083755e610c
treeb4c18d06e0be902565f311f7ae9b1a54c612c6da
parent2660f94964cfb90b9773d7fef6581f3b99f07922
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>
(cherry picked from commit 76cce56c2bf85efde7f360f2af779a75b57141ee)
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