activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Taylor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACTIVEMQ6-71) browser returns duplicates
Date Tue, 20 Jan 2015 17:04:35 GMT

    [ 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)

Mime
View raw message