[jboss-jira] [JBoss JIRA] Commented: (JBMESSAGING-1460) Scheduled Messages not being cleared properly on a removeAllMessages
Howard Gao (JIRA)
jira-events at lists.jboss.org
Tue Nov 25 22:23:36 EST 2008
[ https://jira.jboss.org/jira/browse/JBMESSAGING-1460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12439771#action_12439771 ]
Howard Gao commented on JBMESSAGING-1460:
-----------------------------------------
ok. looks like the scheduled messages are not cleared the way we do with non-scheduled messages. For normal message refs, we clear them by simulating the consuming process, which will correctly remove the ref from both mem and persistent store. But for Scheduled ones, we just clear them from memory. This is my preliminary observation.
from ChannelSupport:
protected void clearAllScheduledDeliveries()
{
synchronized (scheduledDeliveries)
{
Set clone = new HashSet(scheduledDeliveries);
Iterator iter = clone.iterator();
while (iter.hasNext())
{
Timeout timeout = (Timeout)iter.next();
timeout.cancel();
}
scheduledDeliveries.clear();
}
}
> Scheduled Messages not being cleared properly on a removeAllMessages
> --------------------------------------------------------------------
>
> Key: JBMESSAGING-1460
> URL: https://jira.jboss.org/jira/browse/JBMESSAGING-1460
> Project: JBoss Messaging
> Issue Type: Bug
> Affects Versions: 1.4.0.SP3
> Reporter: Mike Pettypiece
> Assignee: Howard Gao
> Attachments: JBMessaging1460.java
>
>
> Messages scheduled for delivery in the future are not correctly removed when the JMX operation removeAllMessages() is called.
> As soon as the Application Server is restarted (or the queue is restarted) the messages are reloaded from the database and requeued.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list