Harden ShardCommitCoordinator to survive EOS write retries 00/81800/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:23:54 +0000 (10:23 +0000)
commit74367138bb5e9f0357c474227c9a1fac691a0a28
treeaf43b987aab29bbd11664f37cb96a6988da2d820
parentff61d45f1244acba2ae41a62084d1193943bd6d1
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