Return-Path: Delivered-To: apmail-geronimo-activemq-dev-archive@www.apache.org Received: (qmail 37431 invoked from network); 9 Oct 2006 14:02:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Oct 2006 14:02:49 -0000 Received: (qmail 11704 invoked by uid 500); 9 Oct 2006 14:02:48 -0000 Delivered-To: apmail-geronimo-activemq-dev-archive@geronimo.apache.org Received: (qmail 11687 invoked by uid 500); 9 Oct 2006 14:02:48 -0000 Mailing-List: contact activemq-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-dev@geronimo.apache.org Received: (qmail 11678 invoked by uid 99); 9 Oct 2006 14:02:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2006 07:02:48 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2006 07:02:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3365E7142DB for ; Mon, 9 Oct 2006 07:02:09 -0700 (PDT) Message-ID: <26659465.1160402529207.JavaMail.root@brutus> Date: Mon, 9 Oct 2006 07:02:09 -0700 (PDT) From: "Kevin Yaussy (JIRA)" To: activemq-dev@geronimo.apache.org Subject: [jira] Commented: (AMQ-961) Problem with subscription passing with network of brokers in AMQ 4.0.2 In-Reply-To: <19014047.1160164749061.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ https://issues.apache.org/activemq/browse/AMQ-961?page=comments#action_37134 ] Kevin Yaussy commented on AMQ-961: ---------------------------------- This does appear to fix the problem. I'd had a similar problem with AMQ 4.0.1, reported in AMQ-776, which I had fixed. But, for the second part of that problem, the original patch did not work. This issue and the second part of AMQ-776, are fixed now by your patch. I'll update AMQ-776, too. > Problem with subscription passing with network of brokers in AMQ 4.0.2 > ---------------------------------------------------------------------- > > Key: AMQ-961 > URL: https://issues.apache.org/activemq/browse/AMQ-961 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 4.0.2 > Reporter: Kevin Yaussy > Priority: Critical > Attachments: RestartDFBOnResume.diff > > > There's an occasional problem with subscription propagation when using a network of brokers. Test scenario uses ConsumerTool and PublisherTool in examples area of distribution. > 1) Start broker A (has a network connection to broker B) > 2) Start broker B (has a network connection to broker A) > 3) start consumer C against broker A, on FOO > 4) start publisher P against broker B, on FOO > Messages do not flow to consumer C. In the broker B log, there's no indication it got any subscriptions from broker A. Again, this is occasional. > I've taken a kill-3 on the brokers, both when this condition appears, and when everything is fine. There's an obvious difference in one of the threads that hopefully will bring light to the problem. I've not gone into the code yet to try and find the issue, but figured I would open this issue first. > Stack trace of broker A when subscriptions did NOT pass, and message flow is broken: > "ActiveMQ Transport: tcp://perfgc1a/170.137.15.169:5112" prio=10 tid=0x0030e160 nid=0x3f in Object.wait() [0x8 > e2ff000..0x8e2ff8f0] > at java.lang.Object.wait(Native Method) > - waiting on <0x9b2b00d0> (a edu.emory.mathcs.backport.java.util.concurrent.CountDownLatch) > at java.lang.Object.wait(Object.java:474) > at edu.emory.mathcs.backport.java.util.concurrent.CountDownLatch.await(CountDownLatch.java:179) > - locked <0x9b2b00d0> (a edu.emory.mathcs.backport.java.util.concurrent.CountDownLatch) > at org.apache.activemq.network.DemandForwardingBridgeSupport.waitStarted(DemandForwardingBridgeSupport > .java:830) > at org.apache.activemq.network.DemandForwardingBridgeSupport.serviceRemoteCommand(DemandForwardingBrid > geSupport.java:329) > at org.apache.activemq.network.DemandForwardingBridgeSupport$2.onCommand(DemandForwardingBridgeSupport > .java:130) > at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:92) > at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67) > at org.apache.activemq.transport.failover.FailoverTransport$1.onCommand(FailoverTransport.java:117) > at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:124) > at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:123) > at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:88) > at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:137) > at java.lang.Thread.run(Thread.java:595) > Stack trace of broker A when everything works correctly: > "ActiveMQ Transport: tcp://perfgc1a/170.137.15.169:5112" prio=10 tid=0x01955fc8 nid=0x3f runnable [0x8e2cf000..0x8e2cfaf0] > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(SocketInputStream.java:129) > at org.apache.activemq.transport.tcp.TcpBufferedInputStream.fill(TcpBufferedInputStream.java:49) > at org.apache.activemq.transport.tcp.TcpBufferedInputStream.read(TcpBufferedInputStream.java:56) > at java.io.DataInputStream.readInt(DataInputStream.java:353) > at org.apache.activemq.openwire.OpenWireFormat.unmarshal(OpenWireFormat.java:275) > at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:136) > at java.lang.Thread.run(Thread.java:595) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira