Fix unregistering of cluster services 21/46321/2
authorTomas Slusny <tomas.slusny@pantheon.sk>
Fri, 30 Sep 2016 11:16:17 +0000 (13:16 +0200)
committerTomas Slusny <tomas.slusny@pantheon.sk>
Fri, 30 Sep 2016 12:18:10 +0000 (14:18 +0200)
commit63298c78be3f9299e93dcaf89c2eddc7b64a3590
tree1ff27ba78ac4d31f352f798fa8f5e37cdc34a6d7
parent191d8581d6e34829141ee7c44c6e05e98379b86d
Fix unregistering of cluster services

When unregistering cluster singleton services, check if we are not
already in unregistering phase, and if yes, skip this process. Also,
chain stopClusterServices futures properly, so Singleton will know, when
to finish unregistering.

See also: bug 6672

Change-Id: I07e077eb7dd655b6af9e4e3ee61e46163b8538b0
Signed-off-by: Tomas Slusny <tomas.slusny@pantheon.sk>
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/lifecycle/LifecycleServiceImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/role/RoleContextImpl.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/lifecycle/LifecycleServiceImplTest.java