[
https://issues.apache.org/jira/browse/AMQ-9593?focusedWorklogId=984924&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-984924
]
ASF GitHub Bot logged work on AMQ-9593:
---------------------------------------
Author: ASF GitHub Bot
Created on: 29/Sep/25 05:37
Start Date: 29/Sep/25 05:37
Worklog Time Spent: 10m
Work Description: jbonofre commented on code in PR #1352:
URL: https://github.com/apache/activemq/pull/1352#discussion_r2386755518
##########
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'm still in favor on a dedicated flag here, because the semantic is
different so the behavior is.
To reduce the "side effect" for existing users on ActiveMQ 6.x, I'm in favor
of `deleteAllScheduledMessagesOnStartup`. We can revisit this for 7.x.
@mattrpav @kenliao94 thoughts ?
Issue Time Tracking
-------------------
Worklog Id: (was: 984924)
Time Spent: 1h 10m (was: 1h)
> 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
> Time Spent: 1h 10m
> 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