qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rajith Attapattu (JIRA)" <qpid-...@incubator.apache.org>
Subject [jira] Resolved: (QPID-1163) if commit is called inside the onMessage method we don't send a messageAccept for that message
Date Fri, 04 Jul 2008 02:36:31 GMT

     [ https://issues.apache.org/jira/browse/QPID-1163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rajith Attapattu resolved QPID-1163.
------------------------------------

    Resolution: Fixed

Arnaud has fixed this issue in rev 673074 on trunk.

> if  commit is called inside the onMessage method we don't send a messageAccept for that
message
> -----------------------------------------------------------------------------------------------
>
>                 Key: QPID-1163
>                 URL: https://issues.apache.org/jira/browse/QPID-1163
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: M3
>            Reporter: Rajith Attapattu
>            Assignee: Arnaud Simon
>             Fix For: M3
>
>
> If a commt is called inside onMessage method in the MessageListener we don't send a messageAccept.
> Since the messageAccept is not sent, the broker will not dequeue the message upon receipt
of the commit.
> The reason for this is bcos we keep track of the _txSize and _txRangeSet in the addDeliveredMessage
method.
> This method is called from postDeliver method which is called only after the onMessage
method returns.
> Therefore if you call commit inside onMessage these 2 variable are not updated properly,
resulting in not sending the proper messageAccepts before the commit.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message