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 07D0E200B5B for ; Fri, 5 Aug 2016 22:13:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0674C160AAC; Fri, 5 Aug 2016 20:13:22 +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 733FE160A8E for ; Fri, 5 Aug 2016 22:13:21 +0200 (CEST) Received: (qmail 71718 invoked by uid 500); 5 Aug 2016 20:13:20 -0000 Mailing-List: contact issues-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 issues@activemq.apache.org Received: (qmail 71703 invoked by uid 99); 5 Aug 2016 20:13:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2016 20:13:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 762E62C0D5D for ; Fri, 5 Aug 2016 20:13:20 +0000 (UTC) Date: Fri, 5 Aug 2016 20:13:20 +0000 (UTC) From: "Filip Nowak (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMQ-6387) Messages delivered to durable subcriber are kept in broker MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 05 Aug 2016 20:13:22 -0000 Filip Nowak created AMQ-6387: -------------------------------- Summary: Messages delivered to durable subcriber are kept in broker Key: AMQ-6387 URL: https://issues.apache.org/jira/browse/AMQ-6387 Project: ActiveMQ Issue Type: Bug Components: Broker Affects Versions: 5.13.4 Environment: jdk1.8.0_77 Reporter: Filip Nowak Given: * broker with disabled persistence * non-transactional sessions with {{AUTO_ACKNOWLEDGE}} * topic When: * there nactive durable subscription * messages with are sent to that topic with {{DeliveryMode.PERSISTENT}} * subscription becomes active and all messages are delivered Then: * messages are kept in brokers memory (visible in {{memoryPercentUsage}}, on heap etc) When: * messages expiration time or TTL is elapsed Then: * messages are still kept in brokers memory (visible in {{memoryPercentUsage}}, on heap etc) ----- Messages are kept also when message selector of durable subscription does not match messages sent to topic. Changing {{DeliveryMode}} to {{NON_PERSISTENT}} makes the messages not kept. Attached test case. -- This message was sent by Atlassian JIRA (v6.3.4#6332)