Bug 4114 - netconf connector replace causes transaction chain failure 52/32352/5
authoradetalhouet <adetalhouet@inocybe.com>
Mon, 11 Jan 2016 18:02:20 +0000 (13:02 -0500)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 18 Jan 2016 16:49:26 +0000 (16:49 +0000)
commit2bde01e8aa670be6573d433d894b2ee523470ba8
tree8bf4565031a9f1c723de73c74b2a8fb984f4878f
parent7670ad6917512cdf725fcdcc7cbcff1ed4cf09f3
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: Ic48d2993318d22f7af2e6aba49d718677a05ea3d
Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
opendaylight/md-sal/sal-netconf-connector/src/main/java/org/opendaylight/controller/sal/connect/netconf/sal/NetconfDeviceDatastoreAdapter.java
opendaylight/md-sal/sal-netconf-connector/src/main/java/org/opendaylight/controller/sal/connect/netconf/sal/NetconfDeviceSalProvider.java
opendaylight/md-sal/sal-netconf-connector/src/main/java/org/opendaylight/controller/sal/connect/netconf/sal/NetconfDeviceTopologyAdapter.java
opendaylight/md-sal/sal-netconf-connector/src/test/java/org/opendaylight/controller/sal/connect/netconf/sal/NetconfDeviceTopologyAdapterTest.java