You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2024/09/26 12:10:00 UTC
[jira] [Commented] (AMQ-9572) broker with "deleteAllMessagesOnStartup" set to true doesn't delete scheduled messages
[ https://issues.apache.org/jira/browse/AMQ-9572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17884980#comment-17884980 ]
Jean-Baptiste Onofré commented on AMQ-9572:
-------------------------------------------
It's expected (for scheduled message) as they should be deliver on the right time. deleteAll will delete pending messages but not schedule for later dispatch.
Maybe we should document it more explicit for scheduled messages. Or maybe introduce another property for scheduled messages.
> broker with "deleteAllMessagesOnStartup" set to true doesn't delete scheduled messages
> --------------------------------------------------------------------------------------
>
> Key: AMQ-9572
> URL: https://issues.apache.org/jira/browse/AMQ-9572
> Project: ActiveMQ Classic
> Issue Type: Bug
> Components: Broker
> Affects Versions: 5.18.5, 6.1.3
> Reporter: Ken Liao
> Priority: Minor
>
> According to https://activemq.apache.org/components/classic/documentation/broker-uri, when "deleteAllMessagesOnStartup" is set to true, all messages in the persistent store are deleted. If we interpret it literally, that should include scheduled messages.
> However, after testing it locally on 5.18.5 and 6.1.3, that is not true. Scheduled messages are not deleted even "deleteAllMessagesOnStartup" is set to true.
> Upon diving deeper, scheduler stores its data in a separated store not shared with the KahaDB store in the persistent layer (I tested with broker on KahaDB).
> Hence I have a few questions:
> 1. Is this expected? "deleteAllMessagesOnStartup" should not remove message scheduled by the scheduler?
> 2. Is this desirable? I.E when a user enables this setting, are they expecting scheduled messages to be removed as well.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact