BUG-8156 Fix PCEP topology registration 37/55937/5
authorKevin Wang <kevixw@gmail.com>
Mon, 24 Apr 2017 20:31:12 +0000 (13:31 -0700)
committerKevin Wang <kevixw@gmail.com>
Fri, 26 May 2017 17:54:53 +0000 (17:54 +0000)
commit2801f2b71ca49dcee50b643ef5ed4f53938609fc
treeb5c7c422000eee63c42e0edf541826eb1b5d784d
parent4b1b55c3b2a28df1de05887e0e1abed7855bc95c
BUG-8156 Fix PCEP topology registration

It is possible that when a PCEP session is being dropped and being
unregistered from ServerSessionManager, the thread gets switched
thus the topology unregistering cannot finish.

If such situation happens, PCEP session from the same PCEP peer will
not be able to established until after DEADTIMER_EXPIRED, as the
topology instance was not removed correctly.

Change-Id: I647ecfbbb35ef6805d563753b7ebd87edfc350fe
Signed-off-by: Kevin Wang <kevixw@gmail.com>
pcep/topology-provider/src/main/java/org/opendaylight/bgpcep/pcep/topology/provider/AbstractTopologySessionListener.java
pcep/topology-provider/src/main/java/org/opendaylight/bgpcep/pcep/topology/provider/ServerSessionManager.java