I'm trying to fix the problem with
com.mongodb.DBPortPool$ConnectionWaitTimeOut: Connection wait timeout after 120000 ms
and read, that in plugin version :mongo:3.0.0 the issue should be fixed by now.
In my app I'm using Grails 2.2.4 and mongo 1.3.3 now. In plugin-doc stands, that mongo 3.0 works only with Grails 2.3.x.
My question is, which is the most recent mongo plugin version to support Grails 2.2.4?
You can use mongodb 2.0.1 version.
Shashank
Related
My project is currently working with an elder spring boot version 1.5.7 and we wanna use a mongodb 4.0
Due to the gap between spring boot versions 1.5 to 2.X, i would like to upgrade for now the mongodb driver only by using a 3.8.2
My need is only some records and fetchs, any ACID specifics needs sure as update a doc with several processes
I tried locally and i got any errors,
My question is although it's not the best way, is there any fallback by doing that?
(Notes: I will upgrade my spring boot version later)
Thank by advance
Spring Boot is an opinionated framework and also has opinions about the used dependency versions.
So it's never a good idea to upgrade the dependency versions without upgrading Spring Boot itself.
I would not recommend to upgrade just the Mongo DB driver.
I'm currently working in a pretty old project. The current mongodb version is 2.6.x and I am locked with mongoid 2.x with the moped driver. Our database is in serious pain and I suspect it is time for an upgrade but I'm not sure about what database version I can use with the old mongoid driver.
Mongoid is such a hassle to upgrade with all the breaking changes and the rails version dependency I can only upgrade to version 3. If I do all the work of upgrading mongoid I would have liked it to be to a more recent version.
How can I find which database versions the old mongoid 2.x driver supports?
you have to be more specific about the version you use. even minor versions require different MongoDB versions. check this changelog.
Which version of spring-boot is compatible with MongoDB 4.0?
Is there an advisable way to use spring-boot 2.0.5 RELEASE with MongoDB 4.0?
Or better to use spring boot 2.0.5 which has mongo driver version 3.6.x with MongoDB 3.6`?
I think it is not strictly needed to have the latest driver and spring data mongo in order to use a mongodb 4.0; However in the spring data changelog you can see the various changes regarding the driver and DB update, there you can see that in version 2.1.0.RC1 they started adding support for version 4.0 of the database as well as in version 1.10.15.RELEASE. Latest GA version 2.1.0.RELEASE documentation has updated to MongoDB Java Driver 3.8.2.
The java driver and Spring will always be a bit behind with new functionalities introduced by each version of MongoDB. So my suggestion if you are starting now is to use the latest 2.1.0.RELEASE (https://projects.spring.io/spring-data-mongodb/#quick-start)
Edit:
How Mongo was before version 4.0 how-acid-mongodb
ACID in mongo 4.0 multi document transaction
Spring data mongo support for transactions
I trying to migrate an old application, using MongoDB 2.4 to a host, running MongoDB 3.0 in Docker container. For test purpose I am copying the data via ssh tunnel from the older to the newer version.
As I read about the updating process of MongoDB, first I should use Mongo 2.6 and then 3.0. However my test with avoiding the step with version 2.6 was successful and the database works fine. Could somebody explain me is that really possible or I have misunderstood something? It's really strange for me.
Upgrading from 2.4 to 2.6, prior to upgrading to 3.0 is a requirement according to the documentation:
To upgrade an existing MongoDB deployment to 3.0, you must be running
2.6. If you’re running a version of MongoDB before 2.6, you must upgrade to 2.6 before upgrading to 3.0. See Upgrade to 2.6 for the
procedure to upgrade from 2.4 to 2.6. Once upgraded to MongoDB 2.6,
you cannot downgrade to any version earlier than MongoDB 2.4.
Having said that, if you have run the corresponding test cases for your application, with a good test coverage, the indexes are working properly, and nothing has been broken I can not see a reason to worry about but ideally they suggest to migrate to 2.6 and then make the move to 3.0 to avoid data corruption.
I was using Mongo 2.4 in the project that I'm working, then we decide to update to Mongo 3.0.2 because the system was not in production. After update every operation I try to do in Mongo I receive the message: "Couldn't connect with the given credentials". How can I solve this?
This error happen because the authentication changed from MONGODB-CR to SCRAM-SHA-1 in Mongo 3.0. http://docs.mongodb.org/manual/core/authentication/
The solution I found is to update the java mongo driver to version 2.13, as of this version it's possible to use mongo 3.0 http://docs.mongodb.org/ecosystem/drivers/java/