New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CleanUpFieldReferencesJob is not stateful #19006
Comments
Note to QA: This fix affects the following functionalities:
|
@nollymar I think this might need work. A simple test is:
We should see 1 |
* #19006 stateful job needs to be sequential and unque instance. * #19006 moving trigger logic up to base class so it can be re-used * #19006 updating jobs to fire throug enqueueTrigger * #19006 clenup * #19006 clenup code * #19006 fix on how job detail is grabbed * #19006 clean up * #19006 fix test case * #19006 test fix
Tests Results: Needs work Now, the CleanUpFieldReferencesJob is executed statefully (verified through a threaddump), but a CacheProvider exception is thrown multiple times and makes the catalina.out grows indefinitely
I changed the dotListenerSubmitter pool configuration using the following values, but it didn't work:
In spite of that, these functionalities were tested and work as expected:
|
maybe something like this, where we only allow async operations if there is room in the queue? If the queue drains, async can proceed 34e1cf2 |
Internal QA: After the fix applied by Fabrizzio on this PR: #19261, the CleanUpFieldReferencesJob performs delete operations correctly. No errors found in the log |
Fixed, tested every one of the scenarios described in the provided comment and everything works as expected |
Apparently, when we schedule a call to CleanUpFieldReferencesJob as a SimpleTrigger, it does not run statefully. See:
https://github.com/dotCMS/core/blob/master/dotCMS/src/main/java/com/dotmarketing/quartz/job/CleanUpFieldReferencesJob.java#L125
We just had a customer's server go down because of multiple instances of this job running simultaneously.
https://gist.github.com/wezell/cb811c0d838603382e7386331e4dcdce
We need to make sure that we run Stateful jobs statefully
The text was updated successfully, but these errors were encountered: