Fix EOSClusterSingletonServiceProvider shutdown 79/109879/1
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 20 Jan 2024 09:43:55 +0000 (10:43 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 20 Jan 2024 09:50:09 +0000 (10:50 +0100)
commit56c28b25b30222ade6dde8655779f565bb99a4f5
tree605375273f6bfad43ac9952fb74cc19d234bf62b
parent60863260d2ccef5421d2a7caf6cd60eb7f2d02f1
Fix EOSClusterSingletonServiceProvider shutdown

If we close the listener registration we will not be getting any events.
Prevent that by staggered shutdown, where we first mark the instance as
shutting down and only after it has shut down we release the listeners.

JIRA: MDSAL-853
Change-Id: Ibea92376ca83b2cd9f87de5302047503f609ebca
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
singleton-service/mdsal-singleton-dom-impl/src/main/java/org/opendaylight/mdsal/singleton/dom/impl/EOSClusterSingletonServiceProvider.java