Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Error when using high frequency trigger #220

Open
intchris1 opened this issue May 27, 2021 · 0 comments
Open

Error when using high frequency trigger #220

intchris1 opened this issue May 27, 2021 · 0 comments

Comments

@intchris1
Copy link

Problem:
When using any trigger that runs more often than once in 30 seconds, it often fails with this error:

LockManager : Failed to lock trigger DEFAULT.sampleTrigger, reason: WriteError{code=11000, message='E11000 duplicate key error collection: SfoScheduler.quartz_locks index: keyGroup_1_keyName_1_type_1 dup key: { : "DEFAULT", : "sampleTrigger", : "t" }', details={}}

Trigger executes once, then fails with this error, after sometime recovers and runs fine several times, and then fails with the same error again

Here is a sample project: https://github.com/intchris1/quartz-mongodb-reproduce
(Added library to the project because coudn't download repository from bintray)

And there is another issue, I think somehow connected with these locks:
If an application loses connection with MongoDB for several seconds and then gets it back, jobs never get executed again until the application restarts
Unfortunately I don't have a project reproducing this right now, but we have these two issues in production
Both issues encountered when using a single application (not clustered jobstore)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant