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 D95F7DD29 for ; Mon, 30 Jul 2012 11:05:30 +0000 (UTC) Received: (qmail 46652 invoked by uid 500); 30 Jul 2012 11:05:30 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 46588 invoked by uid 500); 30 Jul 2012 11:05:30 -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 46570 invoked by uid 99); 30 Jul 2012 11:05:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2012 11:05:29 +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 (nike.apache.org: domain of gary.tully@gmail.com designates 209.85.217.171 as permitted sender) Received: from [209.85.217.171] (HELO mail-lb0-f171.google.com) (209.85.217.171) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2012 11:05:23 +0000 Received: by lbom4 with SMTP id m4so3360396lbo.2 for ; Mon, 30 Jul 2012 04:05:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=c1wo92LJToKybzppEz5xV+UD21/Z72cD/+7bTnHeviI=; b=nQMeKM0NwBNE0hhr+xOJ8IyXX+73qMI5gvDH0cQ+/11fsR1GpDOyB1JBBTxUwY1FJq cZpg5R3uVTtwNSycESLsgbZgQh6uDHHSHtw9crCpWOmGHWvTYxhX47Z/jGvDU9zYiN5R dO8ZEAL3QBBDFznTnplP5tSQUTCWV0he19p+UZk21cUG+GlrF0MSCONrO8tfRp/LI1Zp pmPpnP35f3vIQDkfZNesHaNnh5kd8fATZq2srIVrwyddsDKkBrJfi07IWnEUVHhkj9O8 E5ogF3lWSnOJKadqbCtuojHfkAui0vxu2BenjAKgzHIJBLqeKAYP6C96hUN7tQ/RYRiz lAig== MIME-Version: 1.0 Received: by 10.112.54.37 with SMTP id g5mr5056085lbp.104.1343646303151; Mon, 30 Jul 2012 04:05:03 -0700 (PDT) Received: by 10.114.13.71 with HTTP; Mon, 30 Jul 2012 04:05:03 -0700 (PDT) In-Reply-To: <1343645487756-4654530.post@n4.nabble.com> References: <1343642533893-4654526.post@n4.nabble.com> <1343645487756-4654530.post@n4.nabble.com> Date: Mon, 30 Jul 2012 12:05:03 +0100 Message-ID: Subject: Re: Lost non-persistent messages From: Gary Tully To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 There should be no message loss, if the memory limit is reached or paging to disk is enabled and the temp store is full, blocking should/will occur. The only cause for message loss with non persistent messages on a queue is if the broker is restarted with message pending for dispatch. On 30 July 2012 11:51, Tom Martinec wrote: > > gtully wrote >> >> iirc that is better in 5.6 >> > > well, have not tried 5.6, but the same problem is likely to be there too, > because the code in tryAddMessageLast looks the same: > > http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java?revision=1202153&view=markup > http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/region/cursors/FilePendingMessageCursor.java?revision=1202153&view=markup > > Anyway, should the producer be blocked? > > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Lost-non-persistent-messages-tp4654526p4654530.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. -- http://fusesource.com http://blog.garytully.com