Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 4378 invoked from network); 16 Jun 2010 04:53:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Jun 2010 04:53:16 -0000 Received: (qmail 72105 invoked by uid 500); 16 Jun 2010 04:25:15 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 71910 invoked by uid 500); 16 Jun 2010 04:25:14 -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 71902 invoked by uid 99); 16 Jun 2010 04:25:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 04:25:13 +0000 X-ASF-Spam-Status: No, hits=-1523.2 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 04:25:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5G4Opgh019888 for ; Wed, 16 Jun 2010 04:24:52 GMT Message-ID: <17962412.15671276662291844.JavaMail.jira@thor> Date: Wed, 16 Jun 2010 00:24:51 -0400 (EDT) From: "Ryan Rolland (JIRA)" To: dev@activemq.apache.org Subject: [jira] Updated: (AMQ-2780) ActiveMQ not preserving Message Order In-Reply-To: <1931984.15621276661691781.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c [ https://issues.apache.org/activemq/browse/AMQ-2780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ryan Rolland updated AMQ-2780: ------------------------------ Attachment: Producer.java Consumer.java BenchmarkSupport.java the command and arguments to invoke the two apps from maven to reproduce the problem: mvn -e exec:java -Dexec.mainClass="org.apache.activemq.benchmark.Producer" -Dexec.args="tcp://127.0.0.1:61616 false queue/syncTopic false 64" mvn -e exec:java -Dexec.mainClass="org.apache.activemq.benchmark.Consumer" -Dexec.args="tcp://127.0.0.1:61616 false queue/RemoteQ false 1 1" example output from consumer showing violations: Delay Set to:5227 ms, violations:0 Delay Set to:2233 ms, violations:0 Delay Set to:9269 ms, violations:0 Delay Set to:8694 ms, violations:0 Delay Set to:7000 ms, violations:0 Delay Set to:6667 ms, violations:0 Delay Set to:7708 ms, violations:0 Delay Set to:4281 ms, violations:0 Delay Set to:4317 ms, violations:0 Delay Set to:1227 ms, violations:0 Delay Set to:6678 ms, violations:0 MessageID Out of Order: 1037651!=1037451 MessageID Out of Order: 1037451!=1037851 MessageID Out of Order: 1037851!=1037651 Delay Set to:384 ms, violations:3 Delay Set to:460 ms, violations:3 Delay Set to:784 ms, violations:3 Delay Set to:9581 ms, violations:3 MessageID Out of Order: 1433823!=1433623 MessageID Out of Order: 1433623!=1434023 MessageID Out of Order: 1434023!=1433823 Delay Set to:954 ms, violations:6 Delay Set to:8185 ms, violations:6 Delay Set to:4814 ms, violations:6 Delay Set to:5689 ms, violations:6 Delay Set to:6990 ms, violations:6 Delay Set to:6026 ms, violations:6 Delay Set to:4511 ms, violations:6 Delay Set to:304 ms, violations:6 > ActiveMQ not preserving Message Order > ------------------------------------- > > Key: AMQ-2780 > URL: https://issues.apache.org/activemq/browse/AMQ-2780 > Project: ActiveMQ > Issue Type: Bug > Affects Versions: 5.3.0 > Environment: Windows XP, JDK 1.6.0_07 > Reporter: Ryan Rolland > Priority: Critical > Attachments: BenchmarkSupport.java, Consumer.java, Producer.java > > > I believe I have found a bug in message order delivery in ActiveMQ. I have taken the example benchmark consumer and producer programs and made the following modifications: > 1) Added a counter to keep track manually of the message order. > 2) Made the transmitted number of bytes per message random between 1 and 64 bytes. > 3) Added a random delay between 1 and 10 seconds triggered after every 100000 messages transferred on the publishing side. > After running for a few minutes I begin to see violations in the message delivery order. In my most recent run I have counted 54 violations over the course of an hour. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.