Ken Liao created AMQ-9572:
-----------------------------

             Summary: 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: 6.1.3, 5.18.5
            Reporter: Ken Liao


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: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to