[
https://issues.apache.org/jira/browse/AMQ-9593?focusedWorklogId=946288&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-946288
]
ASF GitHub Bot logged work on AMQ-9593:
---------------------------------------
Author: ASF GitHub Bot
Created on: 02/Dec/24 05:43
Start Date: 02/Dec/24 05:43
Worklog Time Spent: 10m
Work Description: kenliao94 commented on code in PR #1352:
URL: https://github.com/apache/activemq/pull/1352#discussion_r1865257087
##########
activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java:
##########
@@ -184,6 +184,7 @@ public class BrokerService implements Service {
private JmsConnector[] jmsBridgeConnectors; // these are Jms to Jms bridges
// to other jms messaging systems
private boolean deleteAllMessagesOnStartup;
+ private boolean deleteAllScheduledMessagesOnStartup = false;
Review Comment:
I see where you are coming from. Initially I would expect
deleteAllMessagesOnStartup will include scheduled messages. I even opened a
Jira ticket on it.
https://issues.apache.org/jira/projects/AMQ/issues/AMQ-9572?filter=allissues
from @jbonofre feedback we should have a separated flag for scheduled messages.
Regarding the proposal in v7.x I think if we have the consensus that
deleteAllMessagesOnStartup should include scheduled messages then it makes
sense to me.
Issue Time Tracking
-------------------
Worklog Id: (was: 946288)
Time Spent: 40m (was: 0.5h)
> Add a new option to delete all scheduled messages on startup
> ------------------------------------------------------------
>
> Key: AMQ-9593
> URL: https://issues.apache.org/jira/browse/AMQ-9593
> Project: ActiveMQ Classic
> Issue Type: Improvement
> Components: Job Scheduler
> Reporter: Ken Liao
> Assignee: Ken Liao
> Priority: Major
> Fix For: 6.2.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Right now there is no way to delete scheduled messages on startup because it
> is stored separately from the KahaDB message store. As a result
> "deleteAllMessagesOnStartup" will not delete scheduled messages as expected.
> Nevertheless, it can be useful to provide an option to clean all scheduled
> message upon restart. This provides a way for users to reset the job
> scheduler.
--
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