BUG-7033: Implement batchHint in ShardDataTree 98/49498/4
authorTom Pantelis <tpanteli@brocade.com>
Fri, 16 Dec 2016 21:05:15 +0000 (16:05 -0500)
committerTom Pantelis <tpanteli@brocade.com>
Thu, 29 Dec 2016 08:16:44 +0000 (08:16 +0000)
commit29aa3b83db308b1a511857db8d918e0f2e629407
tree1f030e45d7e803ec3dfcb79a95bac7e482e80e9a
parent000960f6451af770f5463e41e1fb6defb6f3ab27
BUG-7033: Implement batchHint in ShardDataTree

Modified ShardDataTree to properly compute the batchHint flag
that is passed to persistData. Basically if the next transaction
in the pendingCommits queue is in the COMMIT_PENDING state then
batchHint is set to true. After the call to persistData the next
transaction in the pendingCommits queue is processed which, if
COMMIT_PENDING, will be batched for replication with the previous
transaction.

Change-Id: I938e98391c69d617901e7e179c93e066667c017d
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/ShardDataTree.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardDataTreeMocking.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardDataTreeTest.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardTest.java