[ 
https://issues.apache.org/jira/browse/NIFI-2045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15340091#comment-15340091
 ] 

ASF GitHub Bot commented on NIFI-2045:
--------------------------------------

GitHub user brosander opened a pull request:

    https://github.com/apache/nifi/pull/548

    NIFI-2045 - Removing mqtt message from queue after after session.comit()

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/brosander/nifi NIFI-2045

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/548.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #548
    
----

----


> ConsumeMQTT can lose a message if session commit fails
> ------------------------------------------------------
>
>                 Key: NIFI-2045
>                 URL: https://issues.apache.org/jira/browse/NIFI-2045
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>            Reporter: Bryan Rosander
>            Priority: Critical
>
> ConsumeMQTT removes the received message from the queue before committing the 
> session.  This means that if the session commit fails and the session rolls 
> back, the message will be lost.
> https://github.com/apache/nifi/blob/f47af1ce8336c9305916f00738976f3505b01b0b/nifi-nar-bundles/nifi-mqtt-bundle/nifi-mqtt-processors/src/main/java/org/apache/nifi/processors/mqtt/ConsumeMQTT.java#L292



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to