-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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 Java Driver 3.0 #3011
Comments
We can certainly consider moving to 3.0 as the default in Boot 1.3, but I'm not sure it's the right thing to do. We should go with whatever @olivergierke recommends. |
Well, Spring Data 1.8 is compatible with version 3.0 and as Boot 1.3 will ship Spring Data 1.8, then probably is OK moving to version 3.0. |
In Fowler's announcement (https://spring.io/blog/2015/03/26/what-s-new-in-spring-data-fowler#mongodb) they mention support of MongoDB 3.0 server and driver support and also state that:
From this statement you could guess they clearly recommends version 3.0. |
@nomack84 "compatible" and "default" are very different things. |
@spencergibb yeah, but as subsequent development will be focused on 3.0, that make it "default". |
any news about this issue ? is it going to be upgraded ? |
Spring Data MongoDB still uses the 2.x driver by default. I still don't think we'll deviate from that, and certainly not without a recommendation to do so from the Spring Data team. Note that you can, of course, choose to use the 3.0 driver and it should work just fine. |
I don't think we should change for 1.3, but let's consider this again around 1.4. |
+1 |
@ranjan-rk Just to be clear, there's no need for you to wait. While the default is 2.x and will remain so in Boot 1.3 you can override the version to use Mongo 3.0 if you want. |
@wilkinsona Tried to override the version by adding the following, however getting error on server startup (Runtime exception): I am using spring boot 1.2.6.RELEASE. |
@ranjan-jk This issue isn't the right place to diagnose the problem. If you'd like some help, please ask a question on Stack Overflow using the |
@wilkinsona Sure will do that. Thanks for the suggestion. |
Spring Data MongoDB 1.9.x still uses the 2.x driver as its default. |
Having spoken with @olivergierke, Spring Data MongoDB's support for 3.x is such that upgrading to 3.x is a reasonable thing to do in 1.4 |
Is there any reason to not upgrade the mongo driver to 3.0?
The text was updated successfully, but these errors were encountered: