Bug 2588: Fix read transaction failures 82/17682/1
authorTom Pantelis <tpanteli@brocade.com>
Thu, 2 Apr 2015 19:45:30 +0000 (15:45 -0400)
committerTom Pantelis <tpanteli@brocade.com>
Thu, 2 Apr 2015 19:45:30 +0000 (15:45 -0400)
commit2a25d2b3e99a09a5eabee8c37f05ec4ca797264e
tree17b63d91bc57dba9d7348c8814065faea50a037d
parent6c4d75e860579ebf75b372863008e1e01cf2e91c
Bug 2588: Fix read transaction failures

TransactionContextImpl#read now sends the ReadData message immediately
instead of waiting for the previous modification operation Futures to
complete. This ensures the read will be performed by the actor before
the transaction is readied. Also did the same for dataExists.

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