Bug 1703: Fixed memory leak in TransactionChain
authorTony Tkacik <ttkacik@cisco.com>
Thu, 4 Sep 2014 14:18:46 +0000 (16:18 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Thu, 4 Sep 2014 15:16:26 +0000 (15:16 +0000)
commit5f70945677d56734a30fec3449f1859b4ee3e505
tree8f4a753088ebba69b2dccaa77573cdf23a343744
parent91623fef2ff6059529b604a10c1c971234b6efeb
Bug 1703: Fixed memory leak in TransactionChain

As it turned out WeakHashMap is not cleared
if value has strong reference to key. This
required to rewrite BindingTransactionChain
to listen on submit futures for each  transaction
in order to receive events mapped to binding transaction.

This actually simplifies code and removes
any need for having canonical mapping from
DOM transaction to Binding transaction.

Change-Id: I9aa4125197b022dd163f85c6965ad1227e771b99
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/BindingTranslatedTransactionChain.java