ijokarumawak commented on a change in pull request #3233: NIFI-5892 Wait
timestamp lingers, potentially messing up downstream w…
URL: https://github.com/apache/nifi/pull/3233#discussion_r244089568
##########
File path:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/Wait.java
##########
@@ -314,6 +315,8 @@ public void onTrigger(final ProcessContext context, final
ProcessSession session
final Consumer<FlowFile> transferToFailure = flowFile -> {
flowFile = session.penalize(flowFile);
+ // This flowFile is now failed, our tracking is done, remove the
WAIT_START_TIMESTAMP
+ session.removeAttribute(flowFile,WAIT_START_TIMESTAMP);
Review comment:
I wonder if you intended to call the `clearWaitState` method here as well.
```suggestion
flowFile = clearWaitState(session, flowFile);
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services