Bug 1703: Fixed memory leak in TransactionChain 79/10779/2
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)
commit7eead013cff29f7a15d9be546900548363f492ee
treea4b3ac9d45090dc576b6911c26df0a7b74a07565
parent34882a731dbe65c971c612b56e982b9ed12a090b
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