Fix free-standing transaction lookup with module-based shards 19/80419/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 19 Feb 2019 12:50:04 +0000 (13:50 +0100)
committerRobert Varga <nite@hq.sk>
Thu, 21 Feb 2019 01:27:44 +0000 (01:27 +0000)
commit885474c4a5086d8011360a0df1ad856a4fae4969
tree996484f5bba803bbc597c6c03d95f4d2af780efd
parent248c54ba5b6a8262b128ce397fa03d17b7ae6540
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