allthingssecurity commented on PR #30534:
URL: https://github.com/apache/camel/pull/30534#issuecomment-7059358488

   Thanks for the review. All three points are in a0e1a171fe66 (a follow-up 
commit on top of the rebased branch).
   
   - **Replace only our own job** (`QuartzEndpoint.java:431`): done as you 
sketched. With the trigger gone, the endpoint reads the stored job, and 
replaces it only when 
`CamelJob.class.isAssignableFrom(storedJob.getJobClass())` (so 
`StatefulCamelJob` too). Any other job takes the old path, and the start fails 
as before: `ObjectAlreadyExistsException`, or "Trigger could not be found" with 
a clustered store. With a JDBC store, `getJobDetail` throws 
`JobPersistenceException` when it cannot load the stored job's class (a job of 
another application in a shared database). That case is also treated as not 
ours: the exception is added as suppressed and the old path runs. New test 
`durableJobOfAnotherClassIsNotReplaced`: a durable job of another class with 
the same key is in the scheduler, adding the route fails with 
`FailedToCreateRouteException` caused by `ObjectAlreadyExistsException`, and 
the stored job keeps its class and data. It fails on the first commit (the job 
is replaced and the ro
 ute starts). The existing test now stores a `StatefulCamelJob`, so replacing a 
subclass is pinned too.
   - **Upgrade guide**: added "camel-quartz - a durable job left without its 
trigger is scheduled again" after the CAMEL-27171 entry in 
`camel-4x-upgrade-guide-4_24.adoc`. It says that the stored job is now replaced 
by the endpoint's job at start (only a Camel job), and that a durable job whose 
finite trigger has completed is now scheduled again at start, where a clustered 
store used to fail the start.
   - **"might may"**: fixed.
   
   Runs (offline, Quartz 2.5.2): camel-quartz module tests 138 run, 0 failures; 
`QuartzDurableJobScheduleAgainTest` 20 times in one JVM, 60 of 60. The PR 
description is updated.
   
   _Claude Code on behalf of allthingssecurity_
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to