BUG-8156 Fix PCEP topology registration 36/55936/7
authorKevin Wang <kevixw@gmail.com>
Mon, 24 Apr 2017 20:31:12 +0000 (13:31 -0700)
committerClaudio D. Gasparini <claudio.gasparini@pantheon.tech>
Thu, 1 Jun 2017 13:10:28 +0000 (13:10 +0000)
commitd6ab593f2a0ed0a4ed5fcaf2b3846207c2568b28
tree7a946b328e14d02bab8b718400e7c7eb623eb56c
parent7740fa89b077720233d25e8a8fa792905441a3a1
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>
(cherry picked from commit 2801f2b71ca49dcee50b643ef5ed4f53938609fc)
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