We're updating the issue view to help you get more done. 

Update MongoDB (4.0.12)

Description

None

Activity

Show:
Marek Suchánek
August 9, 2019, 12:44 PM
Marek Suchánek
August 9, 2019, 1:06 PM
Marek Suchánek
August 9, 2019, 1:16 PM

It seems to work fine to change the versions in the docker-compose.yml:

  • 3.2 (nothing else needed apparently)

  • 3.4 and run docker exec -it dswdeploymentdsm_mongo_1 bash -c 'mongo --eval "db.adminCommand( { setFeatureCompatibilityVersion: "3.4" } )"'

  • 3.6 and run docker exec -it dswdeploymentdsm_mongo_1 bash -c 'mongo --eval "db.adminCommand( { setFeatureCompatibilityVersion: "3.6" } )"'

  • 4.0 and run docker exec -it dswdeploymentdsm_mongo_1 bash -c 'mongo --eval "db.adminCommand( { setFeatureCompatibilityVersion: "4.0" } )"'

Now I will investigate if everything works.

Marek Suchánek
August 14, 2019, 7:45 AM
Edited

Steps:

  1. Backup your DB

  2. docker-compose down

  3. change DB to mongo:3.2

  4. docker-compose up -d (let it start up)

  5. docker-compose down

  6. change DB to mongo:3.4

  7. docker-compose up -d (let it start up)

  8. docker exec -it dsw_mongo_1 bash -c 'mongo --eval "db.adminCommand( { setFeatureCompatibilityVersion: \"3.4\" } )"'({ “ok”: 1 } should appear)

  9. docker-compose down

  10. change DB to mongo:3.6

  11. docker-compose up -d (let it start up)

  12. docker exec -it dsw_mongo_1 bash -c 'mongo --eval "db.adminCommand( { setFeatureCompatibilityVersion: \"3.6\" } )"' ({ “ok”: 1 } should appear)

  13. docker-compose down

  14. change DB to mongo:4.0

  15. docker-compose up -d (let it start up)

  16. docker exec -it dsw_mongo_1 bash -c 'mongo --eval "db.adminCommand( { setFeatureCompatibilityVersion: \"4.0\" } )"' ({ “ok”: 1 } should appear)

 

Marek Suchánek
August 14, 2019, 8:17 AM

Tested successfully locally with production database from demo and also using E2E test with server:1.9.2 and client:1.9:0.

Assignee

Marek Suchánek

Reporter

Jan Slifka

Priority

Medium

Labels

None

Fix versions

Epic Link

None
Configure