Bug 4627: Fix premature RO tx cleanup 57/34757/1
authorTom Pantelis <tpanteli@brocade.com>
Tue, 16 Feb 2016 04:45:36 +0000 (23:45 -0500)
committerTom Pantelis <tpanteli@brocade.com>
Tue, 16 Feb 2016 04:45:36 +0000 (23:45 -0500)
commit89274c9c31212a1d0f13aeb90384442e72221029
treeb5cab44f33a3bd03c49cdc0183896b74030fc37d
parent705a9efb2e158cbaf852077fe57167fddc646311
Bug 4627: Fix premature RO tx cleanup

For the RO tx PhantomReference cleanup mechanism, modified
RemoteTransactionContextSupport to pass the front-end client
TransactionProxy instance as the referent to the
FinalizablePhantomReference. Previously we were passing the
RemoteTransactionContextSupport instance which is only reachable via
a hard reference until the primary shard actor is obtained and thus may
be eligible for GC while the TransactionProxy is still in use.

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