Skip to content
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

Closed
alvarezmario opened this issue May 19, 2015 · 15 comments
Closed

Upgrade to MongoDB Java Driver 3.0 #3011

alvarezmario opened this issue May 19, 2015 · 15 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@alvarezmario
Copy link
Contributor

Is there any reason to not upgrade the mongo driver to 3.0?

@wilkinsona
Copy link
Member

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.

@alvarezmario
Copy link
Contributor Author

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.
Ping @olivergierke

@alvarezmario
Copy link
Contributor Author

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:

Be aware though that subsequent development will clearly focus on the 3.0 line of both the server and the driver.

From this statement you could guess they clearly recommends version 3.0.

@spencergibb
Copy link
Member

@nomack84 "compatible" and "default" are very different things.

@alvarezmario
Copy link
Contributor Author

@spencergibb yeah, but as subsequent development will be focused on 3.0, that make it "default".

@thiagogcm
Copy link

any news about this issue ? is it going to be upgraded ?

@wilkinsona
Copy link
Member

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.

/cc @olivergierke @christophstrobl

@philwebb
Copy link
Member

philwebb commented Aug 4, 2015

I don't think we should change for 1.3, but let's consider this again around 1.4.

@philwebb philwebb added this to the 1.4.0 milestone Aug 4, 2015
@ranjan-rk
Copy link

+1
Waiting for it.

@wilkinsona
Copy link
Member

@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.

@ranjan-rk
Copy link

@wilkinsona Tried to override the version by adding the following, however getting error on server startup (Runtime exception):

org.mongodb
mongo-java-driver
3.1.0

I am using spring boot 1.2.6.RELEASE.
It would be great if you can share an example to get it working. Thanks for the help.
Here is the project source code : https://github.com/AnujaK/restfiddle

@wilkinsona
Copy link
Member

@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 spring-boot tag. A small sample project that reproduces the problem would also help.

@ranjan-rk
Copy link

@wilkinsona Sure will do that. Thanks for the suggestion.

@philwebb philwebb modified the milestones: 1.4.0.RC1, 1.4.0 Jan 7, 2016
@wilkinsona
Copy link
Member

Spring Data MongoDB 1.9.x still uses the 2.x driver as its default.

@wilkinsona
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

6 participants