Check total batched messages sent in ShardCommitCoordinator on tx ready 34/22034/2
authorTom Pantelis <tpanteli@brocade.com>
Sat, 30 May 2015 09:06:46 +0000 (05:06 -0400)
committerGerrit Code Review <gerrit@opendaylight.org>
Sat, 6 Jun 2015 23:32:23 +0000 (23:32 +0000)
commit376df7be9839100e31e6916d6e685dda9f8bd030
tree862df2c0d45f0fd84da655f916a975a15db9ca32
parent14f8732b144cbe12c97a31555e794938cbe96e62
Check total batched messages sent in ShardCommitCoordinator on tx ready

Added check in the ShardCommitCoordinator to ensure the total number of
batched messages sent equals the total number of messages received as
was done in the ShardWriteTransaction.

Change-Id: I86a67aec7a6a8e8994aee9a2a167972ede1808c7
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
(cherry picked from commit eac2d5f506b801fcac619ca2cb7e4dcd85489a08)
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/ShardCommitCoordinator.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/ReadyLocalTransactionSerializer.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/ShardTest.java