Bug 6797 - Fix deadlock on cached schema-changed notifications 17/46317/1
authorykq <yin.kangqian@zte.com.cn>
Thu, 29 Sep 2016 03:36:54 +0000 (11:36 +0800)
committerykq <yin.kangqian@zte.com.cn>
Fri, 30 Sep 2016 09:58:01 +0000 (17:58 +0800)
commit5db0cc7926ff0f153ecfb2ef94413fa842856816
tree8f45c6a779493fc061c3ad92eff335cf82373698
parent11655db49111c6d58fb44340563c0c4c63d88b84
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>
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/listener/NetconfDeviceCommunicator.java