[
https://issues.apache.org/jira/browse/CAMEL-19914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17775146#comment-17775146
]
Claus Ibsen commented on CAMEL-19914:
-------------------------------------
I looked and its not a bug. Quartz does not allow misfire 4 for cron triggers
Only 0, 1 or 2 is allowed for cron
if (!validateMisfireInstruction(misfireInstruction)) {
throw new IllegalArgumentException(
"The misfire instruction code is invalid for this type
of trigger.");
}
this.misfireInstruction = misfireInstruction;
> Start and stop a quartz route messes up its schedule
> ----------------------------------------------------
>
> Key: CAMEL-19914
> URL: https://issues.apache.org/jira/browse/CAMEL-19914
> Project: Camel
> Issue Type: Bug
> Components: camel-quartz
> Affects Versions: 3.20.6
> Reporter: John Yin
> Priority: Major
>
> When a stopped quartz route is resumed, if it has missed a previously
> scheduled firing because of the stop, it would immediately fire regardless
> its defined schedule. Here is an example:
> from("quartz://test?cron=0+0/3+*+?+*+*").routeId("ROUTE_test").autoStartup(true).log("in
> test")
>
> from("timer://start_stop_test?repeatCount=1").autoStartup(true)
> .process({
> // stop route "ROUTE_test" using routeController API
> // wait for more than 3 minutes so that the stopped ROUTE_test will
> miss a firing
> // resume route "ROUTE_test" using routeController API. You will see
> ROUTE_test immediately fire regardless whether it is the scheduled time or
> not.
> })
--
This message was sent by Atlassian Jira
(v8.20.10#820010)