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 AABD49578 for ; Fri, 9 Mar 2012 17:17:21 +0000 (UTC) Received: (qmail 34735 invoked by uid 500); 9 Mar 2012 17:17:21 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 34673 invoked by uid 500); 9 Mar 2012 17:17:21 -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 34661 invoked by uid 99); 9 Mar 2012 17:17:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 17:17:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Fri, 09 Mar 2012 17:17:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 289651610C for ; Fri, 9 Mar 2012 17:16:57 +0000 (UTC) Date: Fri, 9 Mar 2012 17:16:57 +0000 (UTC) From: "Frank Gynnild (Reopened) (JIRA)" To: dev@activemq.apache.org Message-ID: <830350877.44086.1331313417167.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <801921792.9711.1328642940193.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Reopened] (AMQNET-369) Seems like there is a race condition that can lead to an InvalidDestinationException for tempoary queues after failover has resumed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQNET-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Frank Gynnild reopened AMQNET-369: ---------------------------------- Re-tested with latest trunk version of the AMQ.NET library, but again I reproduce this behavior unfortunately: 1) Start message bus. 2) Connect client A. 3) Connect client B. 4) Sending request from A to B. 5) B receives it and send response to A. 6) Restart the message bus twice. 7) Failover kicks in for Client A. 8) Failover kicks in for Client B. 9) Client A sends message to client B. 10) Client B receives it. 11) Client B fails to send a response to Client A: {code} Apache.NMS.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:DEV-124-62337-634669132031059971-1:0:1 at Apache.NMS.ActiveMQ.Session.DoSend(ActiveMQDestination destination, ActiveMQMessage message, MessageProducer producer, MemoryUsage producerWindow, TimeSpan sendTimeout) at Apache.NMS.ActiveMQ.MessageProducer.Send(IDestination destination, IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive, Boolean specifiedTimeToLive) at Apache.NMS.ActiveMQ.MessageProducer.Send(IMessage message) at InfoFinder.Framework.Communication.CommandTransceiver.SendCommand[T](IMessageProducer producer, T cmd, IDestination destination, TimeSpan timeToLive) {code} So AFAIK, failover and temporary queues are still a no-go. > Seems like there is a race condition that can lead to an InvalidDestinationException for tempoary queues after failover has resumed > ----------------------------------------------------------------------------------------------------------------------------------- > > Key: AMQNET-369 > URL: https://issues.apache.org/jira/browse/AMQNET-369 > Project: ActiveMQ .Net > Issue Type: Bug > Affects Versions: 1.5.3 > Reporter: Frank Gynnild > Assignee: Jim Gomes > Fix For: 1.5.4, 1.6.0 > > > If I repeat the test below I sometimes get a: > Apache.NMS.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1 > Test: > 1. Start Message bus > 2. Start server code. > 3. Stop Message bus > 4. Start Message bus > 5. Start client code. > The client/server uses the request/response pattern. > I don't have a unit test since it doesn't happen all the time. But if happens often enough that I am sure there is a race condition bug here > somewhere. And I think it's in NMS since I can see these log lines: > AdvisoryConsumer adding: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1 > ...Get InvalidDestinationException here... > AdvisoryConsumer removing: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira