BUG 5656 : Entity ownership candidates not removed consistently on leadership change 17/37117/2
authorMoiz Raja <moraja@cisco.com>
Tue, 5 Apr 2016 01:27:17 +0000 (18:27 -0700)
committerMoiz Raja <moraja@cisco.com>
Wed, 6 Apr 2016 16:26:27 +0000 (16:26 +0000)
commitd8f662fd3bd955cadc61b3a7c7a054c89631d236
treea676f3666de47c97102702bcb9f15932c1ec445f
parent69ca63911e1e3ef544e555d4c487d03831b40390
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]