Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B8BFB75D6 for ; Wed, 9 Nov 2011 15:00:18 +0000 (UTC) Received: (qmail 10142 invoked by uid 500); 9 Nov 2011 15:00:18 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 10102 invoked by uid 500); 9 Nov 2011 15:00:18 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 10094 invoked by uid 99); 9 Nov 2011 15:00:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 15:00:18 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2011 15:00:12 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CB890442DF for ; Wed, 9 Nov 2011 14:59:51 +0000 (UTC) Date: Wed, 9 Nov 2011 14:59:51 +0000 (UTC) From: =?utf-8?Q?Daniel_La=C3=BCgt_=28Updated=29_=28JIRA=29?= To: dev@activemq.apache.org Message-ID: <671853130.14474.1320850791835.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1382394161.14470.1320850791583.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (AMQCPP-384) Failover and prefetch=0 can result in hung consumers if the MessagePull command is lost MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQCPP-384?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel La=C3=BCgt updated AMQCPP-384: -------------------------------- Affects Version/s: 3.4.0 =20 > Failover and prefetch=3D0 can result in hung consumers if the MessagePull= command is lost > -------------------------------------------------------------------------= -------------- > > Key: AMQCPP-384 > URL: https://issues.apache.org/jira/browse/AMQCPP-384 > Project: ActiveMQ C++ Client > Issue Type: Bug > Affects Versions: 3.4.0 > Reporter: Daniel La=C3=BCgt > Assignee: Timothy Bish > > The problem has been fixed in ActiveMQ Java Client with the issue AMQ-287= 7: > https://issues.apache.org/jira/browse/AMQ-2877 > I've attached a patch that backport the fix done in java to C++. It can b= e probably used as suggestion... > With prefetch=3D0, a consumer that has no messages sends an async message= to the broker to have it dispatch a single message and waits for the dispa= tch to ocurr. prefetch=3D0 makes the consumer a pull consumer, in that it h= as to ask for a message each time. > there is a possibility that failover occurs just after the send of the me= ssagePull command such that the consumer is blocked waiting for a message b= ut a failover connection or broker does not know about the outstanding pull= command. The connection state tracker is the normal mechanism for command = replay after failover. This needs to be extended to track messagePull comma= nds, keeping one outstanding reference for each consumer/destination pair t= hat can be replayed after failover. > It makes sense to reuse the messageCache for this. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira