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

quartz-mongodb 2.2.0-rc2: checkInErrorHandler — something is missing #226

Open
gagarski opened this issue Sep 6, 2021 · 4 comments
Open

Comments

@gagarski
Copy link

gagarski commented Sep 6, 2021

I am trying to update quartz-mongodb in our project. Unfortunately we had to do some monkey-patching around quartz-mongodb code so I took some look into quartz-mongodb code and noticed the following strange things about setting custom checkInErrorHandler:

Now to the strange things:

The thing is that setCheckInErrorHandler is never called by anyone.

So, properties are being read for no reason and checkInErrorHandler class is based chosen based on a value which is effectively constant. Seems like something here is missing.

@WakeCaine
Copy link

This repo is abandoned. I do recommend switching to SQL based Quartz from Spring. We tried to use this connector in our project but there has been too many problems with actual optimization and speed even on single instance. Switching to SQL version resolved it and allowed for correct multithreading speed.

@rfelgent
Copy link

@WakeCaine ,

why are you so sure that this repo is abandoned ?

@wakymak
Copy link

wakymak commented Jan 5, 2022

@WakeCaine ,

why are you so sure that this repo is abandoned ?

Main maintainer/creator stopped contributions and did not refresh official artifact. Bintray is no longer with us. Additionally there are still persisting problems not only with transactions but also cluster mode.
Not saying this didnt have potential but we would need somebody to actually work and improve this and for now SQL version is a lot faster and more stable. I wanted to keep using this but it failed my expectations.

@alebastrov
Copy link

just create a new class

package xxx;
public class FixedMongoDBJobStore extends MongoDBJobStore {
    public String getCheckInErrorHandler() {
        return NoOpErrorHandler.class.getCanonicalName();
    }
}

and pass its name to quartz.properties instead of

#org.quartz.jobStore.class=com.novemberain.quartz.mongodb.MongoDBJobStore
org.quartz.jobStore.class=xxx.FixedMongoDBJobStore

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

5 participants