You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/03/27 00:44:54 UTC
[jira] [Commented] (QPID-6466) Client may send duplicate
basic.rejects (or messageRelease) during consumer close
[ https://issues.apache.org/jira/browse/QPID-6466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14382961#comment-14382961 ]
ASF subversion and git services commented on QPID-6466:
-------------------------------------------------------
Commit 1669472 from [~k-wall] in branch 'qpid/trunk'
[ https://svn.apache.org/r1669472 ]
QPID-6466: [Java Client] Avoid possibilty that the dispatcher and IO thread can reject/release the same message during consumer close
> Client may send duplicate basic.rejects (or messageRelease) during consumer close
> ---------------------------------------------------------------------------------
>
> Key: QPID-6466
> URL: https://issues.apache.org/jira/browse/QPID-6466
> Project: Qpid
> Issue Type: Bug
> Components: Java Client
> Affects Versions: 0.18, 0.22, 0.32
> Reporter: Keith Wall
> Assignee: Keith Wall
> Priority: Minor
> Fix For: 6.0 [Java]
>
>
> During a MessageConsumer#close() currently the Qpid Client uses both the the IO thread (BasicCancelOkMethodHandler#methodReceive() > AMQProtocolSession#confirmConsumerCancelled() -> ... -> AMQSession#rejectMessagesForConsumerTag()) and the Dispatcher (AMQSession.Dispatcher#notifyConsumer) to return any messages in the pre dispatch queue to the Broker.
> There is a race where both may return the same message, causing a duplicate to be received by the Broker.
> On the 0-8 path with the Java Broker, it is reported like this:
> {noformat}
> 2015-03-26 21:54:58,011 WARN [IO-/127.0.0.1:52562] (v0_8.AMQChannel) - Dropping reject request as message is null for tag:113
> {noformat}
> Whilst harmless, the log message causes confusion for the user.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org