CONTROLLER-1809: De-deplicate extraneous ManagedService updates 48/67448/2
authorTom Pantelis <tompantelis@gmail.com>
Mon, 22 Jan 2018 22:43:44 +0000 (17:43 -0500)
committerStephen Kitt <skitt@redhat.com>
Tue, 23 Jan 2018 14:06:28 +0000 (14:06 +0000)
commit047e0a0a712e069ea59c503cbe757392d35974a5
treebfe5947089bf021d7badb05928d21a29ac4a250c
parent0e0e2378d379e2fbc12d8f93ef41b3267e10f83a
CONTROLLER-1809: De-deplicate extraneous ManagedService updates

For some strange reason, the ComponentProcessor gets an extraneous
duplicate update from the ConfigAdmin when running the netvirt
integration/CSIT which causes it to restart the container b/c it
thinks there was an update. There is no cfg file so both updates
pass a null Properties. Oddly, I do not see this behavior when
installing the toaster feature from the controller karaf.

I added logic to store the last update and only restart if it
changed. In my testing though, the ConfigAdmin does not notify
unless a change actually occurred.

Change-Id: I692dbd7fcaf921b90f828059d6104138c16a0508
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
opendaylight/blueprint/src/main/java/org/opendaylight/controller/blueprint/ext/ComponentProcessor.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.