Fix free-standing transaction lookup with module-based shards 13/80413/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 19 Feb 2019 12:50:04 +0000 (13:50 +0100)
committerRobert Varga <nite@hq.sk>
Wed, 20 Feb 2019 14:35:25 +0000 (14:35 +0000)
commitd4671b08116081b06ec154016bae592f749f843c
tree42fd8b0f4008ac186ec3fd95ee3220ffa4c03fd0
parente29115936c6a9cf74d57943b1f121b15b2431e69
Fix free-standing transaction lookup with module-based shards

When we have a combination of tell-based protocol with module-based
shards, the frontend will use the cookie within LocalHistoryIdentifier,
making it potentially non-zero.

The backend tracks free-standing transactions under a local history,
which has cookie set to zero, hence it will not match when we attempt
to look it up for the purposes commit/abort/purge -- leading to
mismatched leader state for these transactions.

Change-Id: Ic4a493d0728b8de288a779d8c97a157584dc76bb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 8528c8bea98570731e9b4e508507c59cbe93d1c0)
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/FrontendClientMetadataBuilder.java