You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Tamas Palfy (Jira)" <ji...@apache.org> on 2023/08/22 15:45:00 UTC

[jira] [Updated] (NIFI-11978) NPE when trying to disable Management Controller Service

     [ https://issues.apache.org/jira/browse/NIFI-11978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tamas Palfy updated NIFI-11978:
-------------------------------
    Description: 
With https://issues.apache.org/jira/browse/NIFI-11556 controller services implement the GroupedComponent interface. However Management Controller Services (the ones available and managed from the Controller Settings) don’t have groups.

Not sure about the extent of the issues but I can confirm a concrete one: the management controller services can’t be disabled because that requires a check of the referencing components and the logic includes
{code:java}
public class StandardControllerServiceDAO extends ComponentDAO implements ControllerServiceDAO {
    ...
    @Override
    public void verifyUpdateReferencingComponents(final String controllerServiceId, final ScheduledState scheduledState, final ControllerServiceState controllerServiceState) {
        final ControllerServiceNode controllerService = locateControllerService(controllerServiceId);

        controllerService.getProcessGroup().verifyCanScheduleComponentsIndividually();
{code}
which throws NullPointerException (as there is no process group).

  was:
With https://issues.apache.org/jira/browse/NIFI-11556 controller services implement the GroupedComponent interface. However Management Controller Services (the ones available and managed from the Controller Settings) don’t have groups.

Not sure about the extent of the issues but I can confirm a concrete one: the management controller services can’t be disabled because that requires a check of the referencing components and the logic includes
{code:java}
public class StandardControllerServiceDAO extends ComponentDAO implements ControllerServiceDAO {
    ...
    @Override
    public void verifyUpdateReferencingComponents(final String controllerServiceId, final ScheduledState scheduledState, final ControllerServiceState controllerServiceState) {
        final ControllerServiceNode controllerService = locateControllerService(controllerServiceId);
        controllerService.getProcessGroup().verifyCanScheduleComponentsIndividually();
{code}
which throws NullPointerException (as there is no process group).


> NPE when trying to disable Management Controller Service
> --------------------------------------------------------
>
>                 Key: NIFI-11978
>                 URL: https://issues.apache.org/jira/browse/NIFI-11978
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Tamas Palfy
>            Priority: Major
>
> With https://issues.apache.org/jira/browse/NIFI-11556 controller services implement the GroupedComponent interface. However Management Controller Services (the ones available and managed from the Controller Settings) don’t have groups.
> Not sure about the extent of the issues but I can confirm a concrete one: the management controller services can’t be disabled because that requires a check of the referencing components and the logic includes
> {code:java}
> public class StandardControllerServiceDAO extends ComponentDAO implements ControllerServiceDAO {
>     ...
>     @Override
>     public void verifyUpdateReferencingComponents(final String controllerServiceId, final ScheduledState scheduledState, final ControllerServiceState controllerServiceState) {
>         final ControllerServiceNode controllerService = locateControllerService(controllerServiceId);
>         controllerService.getProcessGroup().verifyCanScheduleComponentsIndividually();
> {code}
> which throws NullPointerException (as there is no process group).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)