Harden ShardCommitCoordinator to survive EOS write retries 01/81801/1
authorTomas Cere <tomas.cere@pantheon.tech>
Fri, 26 Apr 2019 10:37:38 +0000 (12:37 +0200)
committerRobert Varga <nite@hq.sk>
Mon, 29 Apr 2019 10:24:04 +0000 (10:24 +0000)
commit4dba2522d5d71408593cb56c605db699f8919804
tree130dd5acbaea3e1b385bc33b962f4b2a8a0fccd8
parent5b685df28d9ea19494ffc5a998e7059ab15a118e
Harden ShardCommitCoordinator to survive EOS write retries

EntityOwnershipShard can break the usual shard rule of only one 3PC
running at one time, causing the retrying write attempting to modify
an already sealed modification.

Change-Id: Iaa56b68a30f9191f7aa14428f39d4d7524aeb09d
Signed-off-by: Tomas Cere <tomas.cere@pantheon.tech>
(cherry picked from commit bb04f62f467cc6e6f0922ba8957b09715707940d)
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/CohortEntry.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardCommitCoordinator.java