mirror of https://github.com/apache/nifi.git
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:
parent
0024668dd5
commit
2277d08c8e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue