[
https://issues.apache.org/jira/browse/NIFI-1300?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064661#comment-15064661
]
Joe Skora commented on NIFI-1300:
---------------------------------
[~joewitt], to make sure I understand this better from here on, please let me
review.
The behavior before I started was that an exception on {{jms.createMessage()}}
or {{jms.send()}} was handled with {{session.transfer(failure)}} and
{{context.yield()}} but an exception on {{jms.commit()}} was handled with
{{session.rollback()}}.
Based on your replies and talking to [~mosermw], if the problem is not with the
flowfiles but with the client or connection, the correct way to handle these
exceptions is by calling {{session.rollback()}} followed by {{context.yield()}}.
Does that sound right?
Thanks,
JoeS
> PutJMS should fail flowfile on commit exception and penalize flowfiles routed
> to failure.
> -----------------------------------------------------------------------------------------
>
> Key: NIFI-1300
> URL: https://issues.apache.org/jira/browse/NIFI-1300
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Reporter: Joe Skora
> Assignee: Joe Skora
> Priority: Minor
>
> PutJMS fails the flowfile if an exception occurs during message send, but
> rollsback if an exception occurs during commit. It should fail in both cases
> and it should penalize the flowfile for either failure.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)