BUG 2339 : TransactionChain id created by the Clustered Data Store are not unique 58/12658/1
authorMoiz Raja <moraja@cisco.com>
Sat, 8 Nov 2014 02:12:45 +0000 (18:12 -0800)
committerMoiz Raja <moraja@cisco.com>
Sat, 8 Nov 2014 02:12:45 +0000 (18:12 -0800)
commit4dd0108a91d84a7133ef6b781911e87903981bc1
tree91cd3fd465883e72fc18672f81b98e36d98f3e60
parentef43357d61c0d95de93e5acbb4db23e1d04d9c88
BUG 2339 : TransactionChain id created by the Clustered Data Store are not unique

The fix is to use a simple atomically incrementing integer to form the transaction chain
identifier instead of using the system time.

I also added a few log statements in there which were helpful in debugging the issue.

Change-Id: Ie1465f1640d6be0ff9da0f66477ebafc7ebff137
Signed-off-by: Moiz Raja <moraja@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/TransactionChainProxy.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/TransactionProxy.java
opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/TransactionChainProxyTest.java