Fix NPE while accessing DomTxChain when bgp/app peer singleton service is restarted 80/84080/6
authorAjay Lele <alele@luminanetworks.com>
Thu, 29 Aug 2019 21:37:58 +0000 (14:37 -0700)
committerRobert Varga <nite@hq.sk>
Fri, 22 Nov 2019 09:32:45 +0000 (09:32 +0000)
commit5efe6160e57bc846831dbbe7dd88b8a30c33919a
tree3bc17b6539b6a95f5b25dbe2f9dbf5d7aefda386
parentc23ee5e55cb94faf602d8ef16f109af7023ed8ed
Fix NPE while accessing DomTxChain when bgp/app peer singleton service is restarted

Due to cluster partition/heal, singleton service associated with bgp/app
peer instance can get restarted. Create/close of DomTxChain instance used
by the service was not being handled properly resulting in NPE and failure
to register the peer which caused the BGP connection to not get reestablished.

JIRA: BGPCEP-878
Change-Id: I436ad0877db19c65463bf7b7e09faa3b2b42e5a0
Signed-off-by: Ajay Lele <ajayslele@gmail.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/AbstractPeer.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/ApplicationPeer.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPPeer.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/config/BgpPeer.java
bgp/rib-impl/src/test/java/org/opendaylight/protocol/bgp/rib/impl/config/AppPeerTest.java
bgp/rib-impl/src/test/java/org/opendaylight/protocol/bgp/rib/impl/config/BgpPeerTest.java