You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rajith Attapattu (JIRA)" <qp...@incubator.apache.org> on 2008/07/04 04:36:31 UTC
[jira] Resolved: (QPID-1163) if commit is called inside the
onMessage method we don't send a messageAccept for that message
[ 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.