activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: Purged messages still appear in JMX browseAsTable
Date Fri, 18 Dec 2009 12:06:18 GMT
Hi,

can you raise a Jira issue with all these info?

Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net



On Thu, Dec 17, 2009 at 8:54 PM, stirlingc <schow@alarmpoint.com> wrote:
>
> Just a quick followup, I looked into org.apache.activemq.broker.region.Queue
> to see where the supposedly deleted messages were coming from and they're
> being picked up from the "pagedInPendingDispatch" list during doBrowse(...):
>
>    // Messages that are paged in but have not yet been targeted at a
> subscription
>    private List<QueueMessageReference> pagedInPendingDispatch = new
> ArrayList<QueueMessageReference>(100);
>
> public void doBrowse(boolean forcePageIn, List<Message> l, int max) {
>        final ConnectionContext connectionContext =
> createConnectionContext();
>        try {
>            pageInMessages(forcePageIn);
>            List<MessageReference> toExpire = new
> ArrayList<MessageReference>();
>            synchronized(dispatchMutex) {
>                synchronized (pagedInPendingDispatch) {
> -->                    addAll(pagedInPendingDispatch, l, max, toExpire);
> ...
>
> This list does not get modified during deletion of a message, so is caching
> a copy of the deleted messages.
>
> --
> View this message in context: http://old.nabble.com/Purged-messages-still-appear-in-JMX-browseAsTable-tp26832947p26833977.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

Mime
View raw message