Bug 6797 - Fix deadlock on cached schema-changed notifications 18/46318/1
authorykq <yin.kangqian@zte.com.cn>
Thu, 29 Sep 2016 03:36:54 +0000 (11:36 +0800)
committerKangqian Yin <yin.kangqian@zte.com.cn>
Fri, 30 Sep 2016 10:22:42 +0000 (10:22 +0000)
commitad5f02d0c4ddcc415ae5785c7c74080809a7eb6c
tree8c4f8558740f3b26a94ba1722c83cf5621ef31fe
parent86c0fca79e0f3f10e202a3824f3345c9f8c1a8ba
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