Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5B878FEDB for ; Thu, 30 May 2013 20:54:17 +0000 (UTC) Received: (qmail 85788 invoked by uid 500); 30 May 2013 20:54:16 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 85758 invoked by uid 500); 30 May 2013 20:54:16 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 85750 invoked by uid 99); 30 May 2013 20:54:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 May 2013 20:54:16 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chirino@gmail.com designates 209.85.128.177 as permitted sender) Received: from [209.85.128.177] (HELO mail-ve0-f177.google.com) (209.85.128.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 May 2013 20:54:12 +0000 Received: by mail-ve0-f177.google.com with SMTP id cz10so571656veb.22 for ; Thu, 30 May 2013 13:53:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=06fDGd+nclZsxJslYLXuUVDkIYiug3XOCSJ9A/2HmwA=; b=qFlMxJhhyIbyP+m6xmxf3WJ+H/oFhMYZtlyeZzFDPB2/ndB3A98isLcEoJdiQALg2w ujjuBnvfoYP0m90+zssbRJmt408/B9EZ5EtKiqxjrOC1FvQP8cMxMec3DYrt2FHau7S9 DMYdjD08TwiSwNHlpqjEzUH4JacsDbjjG+WD71aLmUrdtWrkfo0KJ5V4LGxKNNmHhjhJ u7f0K4olGVT5vJgqRtWpoe1hg2lTrUjDnNXoX1puvj0hzV0cXIT/cKgJ2Kzuy2tNIcpr stzC1oNSF2xpyyiDmDlrmKbG6Jlw52nsE0YNvMNeKfv9B+QsI7U+UY544yFf/ceTlT/q P8bA== MIME-Version: 1.0 X-Received: by 10.52.158.225 with SMTP id wx1mr6098071vdb.121.1369947231981; Thu, 30 May 2013 13:53:51 -0700 (PDT) Sender: chirino@gmail.com Received: by 10.52.66.8 with HTTP; Thu, 30 May 2013 13:53:51 -0700 (PDT) In-Reply-To: <1352824401525-4659263.post@n4.nabble.com> References: <1352824401525-4659263.post@n4.nabble.com> Date: Thu, 30 May 2013 16:53:51 -0400 X-Google-Sender-Auth: Kmt9BciPlzHFykty8WdYJvi9XO0 Message-ID: Subject: Re: Unbrowsable ghost message using ActiveMQ running LevelDB and Camel. From: Hiram Chirino To: users Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org FYI.. The last couple of weeks I've fixed several bugs including one which caused this 'ghost' message issue. If you can, update to ActiveMQ 5.9 SNAPSHOT and verify that this version fixes it for ya. On Tue, Nov 13, 2012 at 11:33 AM, patrik wrote: > Hi! > > We have experienced some problems with "ghost" messages running: > ActiveMQ 5.6 running KahaDB and Camel 2.9.2 > > These "ghost" messages appears to be pending, but when we try to consume = or > browse them, they are gone. > Fortunately they reappear when we restart the broker. > In the past six month we have only got three of these messages in > production, so it has been very hard to debug these. > > We tried to test: > ActiveMQ 5.7 running LevelDB and Camel 2.10.2 > > And now we can reproduce this "ghost" message almost every time running t= his > code: > > public static void main(String[] args) throws Exception { > DefaultCamelContext context =3D new DefaultCamelContext()= ; > context.addComponent("activemq", > ActiveMQComponent.activeMQComponent("tcp://localhost:61616")); > send(context, 4000); > read(context, 4000); > context.stop(); > } > > private static void send(DefaultCamelContext context, int count) = throws > Exception { > ProducerTemplate producer =3D context.createProducerTempl= ate(); > for (int i=3D1; i<=3Dcount; i++) { > producer.sendBody("activemq:ghost", > RandomStringUtils.randomAlphanumeric(100000)); > } > producer.stop(); > } > > private static void read(DefaultCamelContext context, int count) = throws > Exception { > ConsumerTemplate consumer =3D context.createConsumerTempl= ate(); > for (int i=3D1; i<=3Dcount; i++) { > consumer.receive("activemq:ghost"); > System.out.println("reciving: " + i); > } > consumer.stop(); > } > > Some keys to reproduce this problem is: > * LevelDB. > * Greater chance with more and larger messages. > * Produce all messages before starting to consume. > > We can find similar questions about this issue but with older versions an= d > upgrading as the solution. > > Should we just upgrade to: > ActiveMQ 5.7 running KahaDB and Camel 2.10.2 > or are we doing something wrong? > > Thanks > Patrik Bj=F6rk > > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Unbro= wsable-ghost-message-using-ActiveMQ-running-LevelDB-and-Camel-tp4659263.htm= l > Sent from the ActiveMQ - User mailing list archive at Nabble.com. --=20 Hiram Chirino Engineering | Red Hat, Inc. hchirino@redhat.com | fusesource.com | redhat.com skype: hiramchirino | twitter: @hiramchirino blog: Hiram Chirino's Bit Mojo