Bug 6710 - Close ClusterSingletonServiceRegistration fix 61/46761/4
authorVaclav Demcak <vdemcak@cisco.com>
Mon, 26 Sep 2016 11:30:41 +0000 (13:30 +0200)
committerTom Pantelis <tpanteli@brocade.com>
Mon, 14 Nov 2016 12:03:10 +0000 (12:03 +0000)
Note: Closing process for CSSRegistration has to follow same
way as a lostLeadership and the main diferences between this
two ways is a not null MainEntityCandidate registration.

* fix using closeClusterSingletonGroup method
  - this method has to be use ONLY without active EOS listener
* fix closeResources method
  - MainEntityCandidate has to be close before lock.release
* fix removing actual CSSGroup instance from EOS listener map
  - close proces has to always finish with removing parth and
    we have to check guardEntityCandidate instece only. Because
    we don't get any aditional notif. from Eos without
    GuardEntityCandidate registration.
* add and modify test
* add async Test Case for SingletonServiceGroup

Change-Id: I15f89cbd43310b0a8e4b7ac78595eeaaa82a65ee
Signed-off-by: Vaclav Demcak <vdemcak@cisco.com>

No differences found