[
https://issues.apache.org/jira/browse/NIFI-12991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17875286#comment-17875286
]
ASF subversion and git services commented on NIFI-12991:
--------------------------------------------------------
Commit da9c296820efb9e574cd006628acf48abe4fa27f in nifi's branch
refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=da9c296820 ]
NIFI-12991 Fixed Recursive Validation of Group Execution Engine (#9186)
Fixed issue in which we recursively validate that we can change Execution
Engine of a group, but without changing the top level, inherited groups can't
actually be changed; instead, replaced logic to ensure that we can change the
top level, that we don't validate the constraint that a STATELESS group cannot
have a STATEFUL child, and then validate that all descendant groups can be
updated, but without checking the descendants' parent groups.
Signed-off-by: David Handermann <[email protected]>
> Can't switch to Standard execution engine if there is a child process group
> inheriting
> ---------------------------------------------------------------------------------------
>
> Key: NIFI-12991
> URL: https://issues.apache.org/jira/browse/NIFI-12991
> Project: Apache NiFi
> Issue Type: Bug
> Components: NiFi Stateless
> Affects Versions: 2.0.0-M2
> Reporter: Gabriel Orstadius-Bui
> Assignee: Mark Payne
> Priority: Major
> Fix For: 2.0.0-M5
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> If process group "A" has child process group "B" which inherits its parent's
> (A's) execution engine, switching A's execution engine to Stateless is no
> problem.
> However, thereafter switching A's execution engine back to Standard leads to
> this error message being shown:
> "A Process Group using the Standard Engine may not be the child of a Process
> Group using the Stateless Engine. Cannot set Execution Engine of
> StandardProcessGroup[identifier=f406cf3a-018d-1000-42a3-6a708991aab7,name=B]
> to Standard because it is a child of
> StandardProcessGroup[identifier=e574e59b-018d-1000-530e-0a9db5c39a6e,name=A]"
> It seems as if NiFi in this case first tries to switch B's execution engine
> to standard, which is not allowed because A is still using the Standard
> execution engine. In this case, NiFi should instead first change A's
> execution engine and thereafter B's.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)