You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Ken Liao (Jira)" <ji...@apache.org> on 2024/09/26 18:04:00 UTC

[jira] [Closed] (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:all-tabpanel ]

Ken Liao closed AMQ-9572.
-------------------------
    Resolution: Not A Problem

> 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