Geoff Greene created NIFI-15955:
-----------------------------------
Summary: Possible NiFi 2.9.0 bug: groovyx ExecuteGroovyScript
fails when Failure Strategy = "transfer to failure"
Key: NIFI-15955
URL: https://issues.apache.org/jira/browse/NIFI-15955
Project: Apache NiFi
Issue Type: Bug
Affects Versions: 2.9.0
Environment: - NiFi: 2.9.0
- Processor: org.apache.nifi.processors.groovyx.ExecuteGroovyScript
(nifi-groovyx-nar 2.9.0)
Reporter: Geoff Greene
Subject:
Hi all,
We just upgraded to NiFi 2.9.0 and I believe we’ve identified a critical issue
in the groovyx ExecuteGroovyScript processor. Please advise if we should open a
Jira (I’m happy to do so).
Minimal reproduction:
Flow:
GenerateFlowFile -> ExecuteGroovyScript
simple ExecuteGroovyScript script:
def ff = session.get()
if (!ff) return
session.transfer(ff, REL_SUCCESS)
Behavior:
- If Failure Strategy = "rollback": works as expected
- If Failure Strategy = "transfer to failure": commit fails even though the
script transfers to REL_SUCCESS
Even on the transfer to failure setting, the flow file remains in the incoming
queue, and I get the bulletin:
ExecuteGroovyScript[id=4250f809-019e-1000-ba2b-dc7f5d729518]
org.apache.nifi.processor.exception.FlowFileHandlingException:
... transfer relationship not specified. This FlowFile was not created in this
session and was not transferred to any Relationship via
ProcessSession.transfer()
Then a follow-on error:
ExecuteGroovyScript[id=4250f809-019e-1000-ba2b-dc7f5d729518] ... is not known
in this session (StandardProcessSession[id=])
I'd really like to see a fix in 2.9.1
--
This message was sent by Atlassian Jira
(v8.20.10#820010)