-
Notifications
You must be signed in to change notification settings - Fork 40.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to MongoDB 5.0 #39989
Upgrade to MongoDB 5.0 #39989
Conversation
Thanks, @christophstrobl. Do you anticipate a strong need to downgrade to the 4.x driver? If at all possible, we'd prefer not to support two different major versions at the same time. |
There's a few more places with removed API around indexing options, etc. and as far as I know the 5.0 release is one of the more aggressive ones in terms of breaking changes done by the MongoDB team so far. For data we intend to support both 5.0 and 4.11 for the 2024.0 train and remove backwards compatibility with 2024.1. |
Given the change in boot is quite limited I guess it would also work to just upgrade and remove the code path for the |
That sounds good to me. We can always restore Mongo Driver 4.x compatibility if we get enough feedback in that direction. |
To be merged after M3 and once we're back on Data snapshots again. |
Adapt code to no longer available MongoClientSettings#getStreamFactoryFactory method.
2f8130e
to
87ba0c4
Compare
MongoDB driver v5 adds a coroutine-based driver ( https://www.mongodb.com/docs/drivers/kotlin/coroutine/current/ ) |
@mauhiz IIRC the |
Superseded by #40259. |
The MongoDB 5.0 Java Driver ships with previously deprecated API now removed (mongodb/mongo-java-driver#1268). To allow users to downgrade if needed, calls to those parts of the driver need to be done reflectively.
Related to: spring-projects/spring-data-mongodb#4663