Bug 8391 - Close producer in become-prefix-leader rpc implementation 83/56683/5
authorJakub Morvay <jmorvay@cisco.com>
Mon, 8 May 2017 11:58:57 +0000 (13:58 +0200)
committerJakub Morvay <jmorvay@cisco.com>
Wed, 10 May 2017 08:00:25 +0000 (08:00 +0000)
commite12b3d81b61a3be12d22afcb7a190611a6895d11
tree4b35926b349ab4a091a5eba021dd69937ea1cf92
parent047566574ea74d1dfe24fa8075f8ba137faa698c
Bug 8391 - Close producer in become-prefix-leader rpc implementation

MdsalLowLevelTestProvider's become-prefix-leader rpc implementation
creates CDSDataTreeProducer to try to move shard leadership. However,
the producer is not closed after leadership change request. This
prevents any subsequent invocations of become-prefix-leader rpc with
same prefix parameter to be successful. Subtree specified by the prefix
is attached to still opened producer and creation of any new producer
for this subtree fails. Close producer once we don't need it.

Change-Id: I3827e425082c35a43ec18dac1ef0f2dbd19b291f
Signed-off-by: Jakub Morvay <jmorvay@cisco.com>
opendaylight/md-sal/samples/clustering-test-app/provider/src/main/java/org/opendaylight/controller/clustering/it/provider/impl/PrefixLeaderHandler.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.