BUG-8618: turn timeouts in READY state into canCommit failures 15/60415/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 3 Jul 2017 16:55:18 +0000 (18:55 +0200)
committerRobert Varga <nite@hq.sk>
Sat, 15 Jul 2017 08:47:57 +0000 (08:47 +0000)
commitbde90693f8326e284cd4bb024fe5ed34d4fa4556
treebb27219c08f0608b88f36c414527fb1b4de8b17c
parentb99dc64f4c2373e28c3c94c11cedad0e5f7abe1d
BUG-8618: turn timeouts in READY state into canCommit failures

This patch adds more details to the TimeoutException reported when
we prune a transaction while it is in the queue. It also peels the
READY case from the defaults and makes sure we send an authoritative
reply back to the frontend when it requests the transaction to be
committed.

Change-Id: I21364ff7e7103af8be6988b8483adc112c3c1d25
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 0d5408c4babc902d270d9f81ed53c6af93bb2867)
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardDataTree.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/SimpleShardDataTreeCohort.java