jackrabbit-oak icon indicating copy to clipboard operation
jackrabbit-oak copied to clipboard

OAK-9447: Support for Mongo Java Driver 4.8

Open Joscorbe opened this issue 3 years ago • 6 comments

Joscorbe avatar May 27 '21 18:05 Joscorbe

@Joscorbe, this PR currently has conflicts. Can you please rebase your changes and resolve the conflicts?

mreutegg avatar May 28 '21 14:05 mreutegg

I think the import package in oak-store-document/pom.xml must be adjusted as well. It currently limits the version scope to something less than 4.x.

mreutegg avatar Jun 11 '21 14:06 mreutegg

@Joscorbe it seems to me only a few changes would be necessary to avoid use of the legacy driver, but I may be missing some less trivial changes. https://www.mongodb.com/docs/drivers/java/sync/current/legacy/#api-changes

WDYT?

mreutegg avatar Aug 19 '22 11:08 mreutegg

Hi @mreutegg, yes, the plan is to move to sync driver after the failing tests in this build are fixed. Apart from the documentation you have showed, I have this support case where they add some points about the transition from legacy to sync:

https://www.mongodb.com/community/forums/t/conversion-from-mongodb-driver-legacy-to-mongodb-driver-sync/125411

Joscorbe avatar Aug 19 '22 13:08 Joscorbe

All checks have passed at this point, I will continue now the migration to sync driver in this same PR.

Joscorbe avatar Aug 23 '22 12:08 Joscorbe

Thanks @mreutegg and @rishabhdaim for your reviews. I think I have addressed all the suggestions in the code. I would appreciate if you have more comments or give green light to merge it.

Joscorbe avatar Sep 09 '22 14:09 Joscorbe