Closed dorogush closed 7 years ago
Motivation for this whole change: Currently there are two ways of interaction with Mongo:
Issues:
@michaelklishin please review
I'm fine with this change. @michaelklishin if you have nothing against then we can merge it.
I don't have a strong opinion on this but supporting user-provided "unmanaged" MongoDB connections sounds reasonable.
@dorogush thank you!
Curiously there is 1 failing test on CI and only on JDK 8. @dorogush can you please take a look?
@michaelklishin @pwojnowski unfortunately, I have no idea how it may be related. Looks like unstable integration test. My guess is that it depends on the tests invocation order, and the latter is undefined?
I also couldn't reproduce it locally on Java 8. I'll look at it.
@pwojnowski any news? Can we release a new version?
@dorogush we can but I'd prefer to do that after we fix CI.
Sorry for the delay. My commits fixed the build, but not the issue that was in the failed build. I added creation of indexes for DAOs tests, because they relay on them. This worked only because the tests were executed either on existing test db or after integration tests, which create the indexes too.
The issue within the failing build looks like timing problem within the test itself. I couldn't reproduce it locally, but IMHO we should improve logs in test, because the current setup doesn't help.
Reworked the way how quartz-mongodb accesses mongodb. It is now through the MongoConnector interface. Support two implementations out of the box: the one that owns the lifecycle of MongoClient (creates and closes) and another that just uses what user provided.