jackrabbit-oak
jackrabbit-oak copied to clipboard
OAK-9447: Support for Mongo Java Driver 4.8
@Joscorbe, this PR currently has conflicts. Can you please rebase your changes and resolve the conflicts?
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.
@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?
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
All checks have passed at this point, I will continue now the migration to sync driver in this same PR.
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.