Abort pending txn's in Shard on leader transition and shutdown 79/31979/5
authorTom Pantelis <tpanteli@brocade.com>
Wed, 30 Dec 2015 11:07:31 +0000 (06:07 -0500)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 8 Jan 2016 02:55:42 +0000 (02:55 +0000)
commit9f5e0e3f4d467e95ab6b93c2f3c90c0cbd312f50
treec782bd0a7b00ff9a9baa39fa493a756fd877e6c6
parent0af1ec71eed1b1408790cfb5478455f458a2a846
Abort pending txn's in Shard on leader transition and shutdown

Added code in the ShardCommitCoordinator to abort pending txn's with an
appropriate failure message when leadership is lost and on shutdown.

Also moved the handleTransactionCommitTimeoutCheck logic from the Shard
to the ShardCommitCoordinator for consistency.

Change-Id: I4af1262aba76909536348a07a368f1559714f90d
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/Shard.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardCommitCoordinator.java