You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2023/08/23 19:11:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17758201#comment-17758201 ]
ASF subversion and git services commented on NIFI-11978:
--------------------------------------------------------
Commit 1e12800912ce0cd368e7827e9b50470ff5c1db18 in nifi's branch refs/heads/main from Tamas Palfy
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=1e12800912 ]
NIFI-11978 Fix: NPE when trying to disable Management Controller Service
This closes #7637
Signed-off-by: David Handermann <ex...@apache.org>
> 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
> Assignee: Tamas Palfy
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> -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.-
> With https://issues.apache.org/jira/browse/NIFI-11556 when verifying if we can update controller service referencing components we check if the Process Group of the Controller Service allows scheduling of components individually. However this part of the change didn't take into account that Management Controller Services don't belong to any Process Group and a NullPointerException is thrown when we try to disable one:
> {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).
> Tagging [~markap14] and [~exceptionfactory] as author and reviewer of NIFI-11556
--
This message was sent by Atlassian Jira
(v8.20.10#820010)