Bug 6797 - Fix deadlock on cached schema-changed notifications 70/46270/3
authorykq <yin.kangqian@zte.com.cn>
Thu, 29 Sep 2016 03:36:54 +0000 (11:36 +0800)
committerTomas Cere <tcere@cisco.com>
Thu, 29 Sep 2016 11:41:40 +0000 (11:41 +0000)
commit75c3077e96415288ca4af0e73bd782570d08d3f8
treedf55255c582b81f415bc4cd60a0c638e774805bb
parent2278a420dbac7a4aa1756af2f07e24605180c94b
Bug 6797 - Fix deadlock on cached schema-changed notifications

Add an atomic state in NetconfDeviceCommunicator to improve the state
transition of close operation, to avoid deadlock while multiple threads
are doing the close.

Change-Id: I2f2c41b86b724eba78a74bfb96c0b499dc7f79a3
Signed-off-by: ykq <yin.kangqian@zte.com.cn>
opendaylight/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/listener/NetconfDeviceCommunicator.java