NIFI-6949: When a Controller Service is removed, ensure that any other 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.
This commit is contained in:
Mark Payne 2019-12-13 11:37:42 -05:00 committed by Pierre Villard
parent 0024668dd5
commit 2277d08c8e
No known key found for this signature in database
GPG Key ID: BEE1599F0726E9CD
1 changed files with 1 additions and 1 deletions

View File

@ -2177,7 +2177,7 @@ public final class StandardProcessGroup implements ProcessGroup {
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);
}