You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It calls retrieveTrigger and might throw an exception due to an invalid cron expression, for example.
Then, the entire transaction will be rolled back as there is no error/exception handling in the loop.
It will result in a defunct misfire recovery. It will run into an infinite state that tries to recover the same misfired triggers without success. All other valid triggers will not be recovered and will be stuck forever.
Questions:
Is this a known issue and by design?
If so, could you please share the background and the reason behind the decision?
Can we handle the retrieveTrigger exception in the loop and unblock the other valid triggers by skipping the erroneous ones?
Thank you!
The text was updated successfully, but these errors were encountered:
This is similar to #48.
In JobStoreSupport.java,
recoverMisfiredJobs
method has a loop:It calls
retrieveTrigger
and might throw an exception due to an invalid cron expression, for example.Then, the entire transaction will be rolled back as there is no error/exception handling in the loop.
It will result in a defunct misfire recovery. It will run into an infinite state that tries to recover the same misfired triggers without success. All other valid triggers will not be recovered and will be stuck forever.
Questions:
retrieveTrigger
exception in the loop and unblock the other valid triggers by skipping the erroneous ones?Thank you!
The text was updated successfully, but these errors were encountered: