Peter Wicks created NIFI-6344:
---------------------------------

             Summary: Add Failure Relationship to UpdateAttribute
                 Key: NIFI-6344
                 URL: https://issues.apache.org/jira/browse/NIFI-6344
             Project: Apache NiFi
          Issue Type: Improvement
          Components: Core Framework
            Reporter: Peter Wicks
            Assignee: Peter Wicks


EL makes it possible for an UpdateAttribute processor to fail. When this 
happens the FlowFile is rolled back, and there is no way to route it to handle 
the failure automatically.

Considerations:

UpdateAttribute is used in probably all but the simplest of flows, thus any 
change made to support a failure relationship must be handled delicately. The 
goal of this change is for users to have no change in functionality unless they 
specifically configure it.

Proposal: 

It was proposed on the Slack channel to create the failure relationship, but 
default it to auto-terminate. This is a good start, but without further work 
would result in a change in functionality. I propose that we will default to 
auto-terminate, but also detect this behavior in the code. If the Failure 
relationship is set to auto-terminate then we will rollback the transaction.

The only downside I see with this is you can't actually auto-terminate Failures 
without the addition of another property, such as Failure Behavior: Route to 
Failure and Rollback options.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to