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 BBFF41866F for ; Fri, 24 Apr 2015 21:44:07 +0000 (UTC) Received: (qmail 29390 invoked by uid 500); 24 Apr 2015 21:44:07 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 29350 invoked by uid 500); 24 Apr 2015 21:44:07 -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 29338 invoked by uid 99); 24 Apr 2015 21:44:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Apr 2015 21:44:07 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,SPF_PASS,T_REMOTE_IMAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: message received from 54.164.171.186 which is an MX secondary for users@activemq.apache.org) Received: from [54.164.171.186] (HELO mx1-us-east.apache.org) (54.164.171.186) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Apr 2015 21:44:02 +0000 Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id E0DFC43DD4 for ; Fri, 24 Apr 2015 21:43:34 +0000 (UTC) Received: by obfe9 with SMTP id e9so47511467obf.1 for ; Fri, 24 Apr 2015 14:43:34 -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:from:date:message-id :subject:to:content-type; bh=TJ8BJOQRmHLoF4UW3vq0wunPlJG8odPtXGu0PXEjgH0=; b=WPd2rtwIz6AUrIxoFeo6REwvtThMk+Cx3FkqLP6D+IokpKsFjvH6gLZJdQv+SPFkHI rM/NWq5YHVU4fnOdK/qDw4ZN/D37NB+ovWUJElnXSpFCYtgFe5R3XRHiksbqUpZrjTC2 I9four1n+qD/8Uljxc0jdFB6fETF+EakEqXNbcDaIL5X6FsXY3jh87a31qUDY57XIE9A gqEQHSbnUK2dCOyPaSWN61FPccMbZVONxSdrsYTUQB7SOj8eeQNQjFA7N7SJirwNw8lV bousC2OGy2iAtu5lpOHimUy3oWgQBbcsj4NxrQZsTxUYjSNxAwPnqSwUdNf9Ok+MM04T 1iVw== X-Received: by 10.202.219.195 with SMTP id s186mr392930oig.25.1429911814300; Fri, 24 Apr 2015 14:43:34 -0700 (PDT) MIME-Version: 1.0 Sender: burtonator2011@gmail.com Received: by 10.183.6.233 with HTTP; Fri, 24 Apr 2015 14:43:14 -0700 (PDT) In-Reply-To: References: <553AAFAE.2050606@gmail.com> From: Kevin Burton Date: Fri, 24 Apr 2015 14:43:14 -0700 X-Google-Sender-Auth: CSblbEUbwREESfU3DdqgLlT63J4 Message-ID: Subject: =?UTF-8?Q?Re=3A_I_can_finally_somewhat_duplicate_the_bad_bug_I?= =?UTF-8?Q?=E2=80=99m_seeing_with_ActiveMQ_not_dispatching_messages=2E?= To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=001a113d29dac0686005147f4994 X-Virus-Checked: Checked by ClamAV on apache.org --001a113d29dac0686005147f4994 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Apr 24, 2015 at 2:27 PM, Tim Bain wrote: > If every message has at least one consumer for which the consumer's > selector matches the message, you'll eventually process every message. > That=E2=80=99s what I thought too, but that doesn=E2=80=99t work. > Consumers that have no messages matching their selector in the cursor wil= l > be delayed until the messages in front of their next one get consumed, bu= t > they'll do it eventually; I don't think you'd have a complete failure to > process messages as Kevin described. (Or maybe I'm reading the wrong thi= ng > into Kevin's description. Kevin, can you confirm that you're getting NO > messages to ANY consumer on your queue?) > > Every message should be consumed. I have basically for selectors: artemis_priority > 4 artemis_priority =3D 4 artemis_priority < 4 artemis_priority is null The last one was a fall through to consume messages once we first added the artemis_priority header. (artemis is the name of our internal codebase) conceptually, I thought this might be an issue, which is why I designed the selectors so that I don=E2=80=99t have to pre-read much. I also confirm that once I remove the selector, I immediately start receiving messages that should match the above priorities. And if I change maxPageSize, it DOES work now =E2=80=A6 so eureka. That=E2= =80=99s a big step. Kevin, your screenshots didn't come through in my email client (Gmail) nor > on the Nabble page; can you resend so we can see what you're seeing in JM= X? > http://imgur.com/a/2myja > > Also, given the way cursors work, implementing priority using selectors i= s > never going to work. At best you'll only be able to prioritize among the > first N messages in the store at any point in time (with N =3D the number= of > messages that will fit into the cursor), which will eventually result in > you having only N lowest-priority messages so you'll process the > low-priority messages while your high-priority consumers sit unable to > reach the high-priority messages deeper in the store. If you want to use > selectors to implement priority, you're going to have to implement the > enhancements to cursors that Jon and I were talking about on Wednesday. > URL to this? Is this because with maxPageSize I=E2=80=99m getting partial = priority? If I=E2=80=99m already an in-memory store, is there any problem just settin= g maxPageSize to a HUGE number? Kevin --=20 Founder/CEO Spinn3r.com Location: *San Francisco, CA* blog: http://burtonator.wordpress.com =E2=80=A6 or check out my Google+ profile --001a113d29dac0686005147f4994--