Skip to content

Commit

Permalink
NIFI-6949: When a Controller Service is removed, ensure that any othe…
Browse files Browse the repository at this point in the history
…r service that it references is obtained via the ControllerServiceProvider to ensure that it is obtain to obtain and remove the reference, even if the service is in a higher-level Process Group

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #3933.
  • Loading branch information
markap14 authored and pvillard31 committed Dec 20, 2019
1 parent 0024668 commit 2277d08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2177,7 +2177,7 @@ public void removeControllerService(final ControllerServiceNode service) {
if (descriptor.getControllerServiceDefinition() != null) {
final String value = entry.getValue() == null ? descriptor.getDefaultValue() : entry.getValue();
if (value != null) {
final ControllerServiceNode referencedNode = getControllerService(value);
final ControllerServiceNode referencedNode = controllerServiceProvider.getControllerServiceNode(value);
if (referencedNode != null) {
referencedNode.removeReference(service, descriptor);
}
Expand Down

0 comments on commit 2277d08

Please sign in to comment.