Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2DA93200C6C for ; Fri, 5 May 2017 22:52:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2C5F2160BAF; Fri, 5 May 2017 20:52:52 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 723A0160BAA for ; Fri, 5 May 2017 22:52:51 +0200 (CEST) Received: (qmail 78393 invoked by uid 500); 5 May 2017 20:52:50 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 78376 invoked by uid 99); 5 May 2017 20:52:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 May 2017 20:52:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id DF70CC102A for ; Fri, 5 May 2017 20:52:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id JZ4g64zL-aLB for ; Fri, 5 May 2017 20:52:45 +0000 (UTC) Received: from mail-qk0-f170.google.com (mail-qk0-f170.google.com [209.85.220.170]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id EEFC05F568 for ; Fri, 5 May 2017 20:52:44 +0000 (UTC) Received: by mail-qk0-f170.google.com with SMTP id k74so15433225qke.1 for ; Fri, 05 May 2017 13:52:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=uI5mGcJGENiycrSK0VbSPmKWkGTm5EJFfuCaG6bt/cg=; b=O99l7lCnQVhQ0LfoYGruYHyUqTCtc4HhtNcblzzZCgxczQb+a4/Emr3l5cUMMaQFeI YBpN13fj1SeAEk63BrvgbrNrCTEajqH8lulcdXHsFFBtCNT4K4Tjba3yPJCUle0o8Zpw Wvhiy97+TxwGD9iHA1ulhwOAuKI2q8GITv+uYqD8rNKtdJBLI2sRzmBg10iSFdoPBWyy eSIogtSlGDzYcImD/AqWVPviCV6Nuy29EK/p3LEGbQH1DuVzKMFSrtKg5yyt7WwwRQYc 6LZ88pj3+6Pjns0AGU5443VSM/UVoghOzMj5l3MJAF4Q8/XBeG/Jscd2zoR33tBME8G7 EXuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=uI5mGcJGENiycrSK0VbSPmKWkGTm5EJFfuCaG6bt/cg=; b=Uoo3jc5VehkBoYVFp/2QfgpyXX91yUShfuveE9gx+wZLOAo3QZP/qeXGHYKZumMN7j UwH+odTnyZPf3aC2BXObKkTU7QuDRGVKnDfvvfyNJJ8HqwX7Q/cpoK7ZU2ndfntumH3c OFTitdJhabTNOqpllyvvVbZeYewxN3NLPZpLiA16AzW2Kd2bJZqdW5mmGwLIBwrLWgMI jwUjcCjSKRaC/Qm7+AnVrlg/mExKkL9Bxr2PyaJ7cPp27Wrsrgt9U/nb3iyQhiCCOA7J 8SCf+w+HBhV+i9mPjWwKp0gFiOnaU5xtKIBHmddQgKKJGabvwJ3LADDY0SJgy5JpYTMS gScA== X-Gm-Message-State: AODbwcA0rFU5WC8voYmAJj28WJ5lRACKykc5uKx7rFxfU029miky4gld LHZ0pPfH1CJO2A+0bNMBwarCF/+H4jx4YoU= X-Received: by 10.55.214.76 with SMTP id t73mr16464483qki.279.1494017564421; Fri, 05 May 2017 13:52:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.170.158 with HTTP; Fri, 5 May 2017 13:52:44 -0700 (PDT) From: Chester Date: Fri, 5 May 2017 16:52:44 -0400 Message-ID: Subject: cpp broker not respecting max-queue-count ? To: users@qpid.apache.org Content-Type: multipart/alternative; boundary=001a1149a5ee378867054ecd1263 archived-at: Fri, 05 May 2017 20:52:52 -0000 --001a1149a5ee378867054ecd1263 Content-Type: text/plain; charset=UTF-8 Hi all, I am trying to create a queue with a message limit of 1, but the broker does not seem to be enforcing the limit. Repro steps: 1. $ qpidd --auth=no # start the cpp broker 2. $ python qmf-test.py # creates a ring queue with max-queue-count=1 and send 2 messages 3. $ qpid-stat -q # check the message count Expected: 1 message in the queue Actual: 2 messages in the queue $ qpid-stat -q Queues queue dur autoDel excl msg msgIn msgOut bytes bytesIn bytesOut cons bind ========================================================================================================================= b871cccb-fb46-4d67-a241-d35f9d899da3:0.0 Y Y 0 0 0 0 0 0 1 2 queue 2 2 0 62 62 0 0 1 $ qpid-config queues Queue Name Attributes ================================================================= 4845e801-c299-44c5-989a-58539c8c615c:0.0 auto-del excl queue --argument limit-policy=ring --argument max-queue-count=1 $ cat qmf-test.py #!/usr/bin/env python from qpid.messaging import * from qmf_interface import QmfInterface address = "localhost:5672" qmf_interface = QmfInterface(address, "Management", {}) QUEUE="queue" try: qmf_interface.create_queue(QUEUE, {'limit-policy': u'ring', 'max-queue-count': 1}) qmf_interface.send_message(QUEUE) qmf_interface.send_message(QUEUE) except MessagingError, m: print m except Exception, e: print 'Caught %s while setting up broker' % e finally: qmf_interface.cleanup() $ rpm -qa | grep qpid qpid-tools-0.32-9.el7.noarch qpid-cpp-client-1.35.0-3.el7.x86_64 qpid-cpp-server-1.35.0-3.el7.x86_64 python-qpid-0.32-12.el7.noarch python-qpid-common-0.32-12.el7.noarch qpid-proton-c-0.17.0-1.el7.x86_64 python-qpid-qmf-1.35.0-3.el7.x86_64 qpid-qmf-1.35.0-3.el7.x86_64 qpid-cpp-client-devel-1.35.0-3.el7.x86_64 Has anyone else seen this? Thanks, Chester --001a1149a5ee378867054ecd1263--