BUG-9079 Make PCEP session recoverable from exception 65/64665/1
authorKevin Wang <kevixw@gmail.com>
Wed, 30 Aug 2017 22:46:39 +0000 (15:46 -0700)
committerClaudio D. Gasparini <claudio.gasparini@pantheon.tech>
Tue, 24 Oct 2017 14:41:09 +0000 (14:41 +0000)
commit8ba07f711a56e7da8d63cd06c45883a814199d6a
tree8f8c6de26c2cb3b374501da0f0cfb2402b80fbf0
parenta00c85de6e53b254f6c51311a7496251569b9dc7
BUG-9079 Make PCEP session recoverable from exception

This patch makes PCEP session recoverable from any netty exception.
Whenever an exception happens, PCEP session will be closed. So it
will be at a clean state when the next session retry comes.

Change-Id: I38a983c44519fd5c12cb9cd0da09fa14c4177ac7
Signed-off-by: Kevin Wang <kevixw@gmail.com>
(cherry picked from commit 004a235ef03cf72dd39e91a2085fa94fd5c1c80d)
pcep/impl/src/main/java/org/opendaylight/protocol/pcep/impl/PCEPSessionImpl.java
pcep/impl/src/test/java/org/opendaylight/protocol/pcep/impl/PCEPSessionImplTest.java
pcep/impl/src/test/java/org/opendaylight/protocol/pcep/impl/SimpleSessionListener.java