BUG 5656 : Entity ownership candidates not removed consistently on leadership change 16/37116/3
authorMoiz Raja <moraja@cisco.com>
Tue, 5 Apr 2016 01:27:17 +0000 (18:27 -0700)
committerTom Pantelis <tpanteli@brocade.com>
Wed, 6 Apr 2016 11:26:56 +0000 (11:26 +0000)
commitb14856a01f6515e6063f82e5fb448f7e9a57029b
tree4cb26be0d81dd9e25f40b00d01c3ada9bca5c745
parent28313ad901a88b4a5e5e9f54da0368c7171ca080
BUG 5656 : Entity ownership candidates not removed consistently on leadership change

This patch removes candidates for all downed members when entity ownership shard
leadership changes. This fixes a corner case where a leader/follower are both killed
simulaneously in a cluster which has greater than 3 nodes. In this case the old leader
does not have a chance to remove the killed follower. The new leader does know that
the follower is down so it can remove the candidates for all downed followers on
shard leadership change.

Change-Id: If28f5656e0daee40fb96a937dbd0a868b7d3645a
Signed-off-by: Moiz Raja <moraja@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/entityownership/EntityOwnershipShard.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/entityownership/DistributedEntityOwnershipIntegrationTest.java
opendaylight/md-sal/sal-distributed-datastore/src/test/resources/application.conf
opendaylight/md-sal/sal-distributed-datastore/src/test/resources/module-shards-default-5-node.conf [new file with mode: 0644]