-
Notifications
You must be signed in to change notification settings - Fork 533
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
Error log at startup with @SchedulerLock #1317
Comments
Hi, I assume it's logged by the JDBC driver, is that correct? It's how ShedLock works and always had. See for example similar issue #1123. In DBs that have reliable UPSERT we already switched to that, for Oracle there does not seem to be a good way to fix that. |
Yes it comes from the jdbc audit. Looks like there is no easy way to do it with oracle. So not much I can do as the log comes from the audit and not from shedlock if I understand correctly? Appart from deactivating the jdbc logs but that would not be great either. |
If you want to, you can try to use merge https://stackoverflow.com/a/2692441/277042 in OracleServerTimeStatementsSource and if the tests pass, send a PR. Unfortunately, I do not have capacity to do it myself. |
Hello,
I have several spring applications using an Oracle database with shedlock 4.44.0 and JdbcTemplateLockProvider.
I have a task @scheduled running with @SchedulerLock(name="Task_lock_name")
Everything is working fine until I restart the app, I have a few logs like that :
It tries to insert a line in the shedlock table with the scheduling lock name but there is already one and the name is the primary key.
After a bit of time everything start to work fine but the error logs at the startup are polluting the logs.
Is this a bug or is there a way to fix it?
As far as I remember it was working fine with 4.33.0, the problem appeared after.
Thanks.
The text was updated successfully, but these errors were encountered: