Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8739910FD7 for ; Tue, 20 Jan 2015 17:04:35 +0000 (UTC) Received: (qmail 82595 invoked by uid 500); 20 Jan 2015 17:04:35 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 82531 invoked by uid 500); 20 Jan 2015 17:04:35 -0000 Mailing-List: contact dev-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 dev@activemq.apache.org Received: (qmail 82468 invoked by uid 99); 20 Jan 2015 17:04:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2015 17:04:35 +0000 Date: Tue, 20 Jan 2015 17:04:35 +0000 (UTC) From: "Andy Taylor (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACTIVEMQ6-71) browser returns duplicates MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACTIVEMQ6-71?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14284017#comment-14284017 ] Andy Taylor commented on ACTIVEMQ6-71: -------------------------------------- On further investigation it turns out that the intermediatemessages iterator is a snapshot while the messagereferences one isnt, removing the former should do the trick > browser returns duplicates > -------------------------- > > Key: ACTIVEMQ6-71 > URL: https://issues.apache.org/jira/browse/ACTIVEMQ6-71 > Project: Apache ActiveMQ 6 > Issue Type: Bug > Affects Versions: 6.0.0 > Reporter: Andy Taylor > Assignee: Andy Taylor > Fix For: 6.0.0 > > > This is because of TotalQueueIterator, we create an iterator for all the message references including those in the intermediateMessageReferences map. This isnt guarded so messages can be moved from intermediateMessageReferences into messageReferences between the creation of the 2 iterators. > This will cause problems for anything using this iterator -- This message was sent by Atlassian JIRA (v6.3.4#6332)