I have been using mongodump in order to backup my entire db. I do it once a day.
However, since switching to mongodb 4.2.2 I have been having random errors on my backup job:
Failed: archive writer: error writing data for collection geo.geos
to disk: error reading collection: (CursorNotFound) cursor id 7535000083817651709 not found / Mux ending but selectCases still open 3
Some days it will work, others it won’t at all. The crash will occur on different collections everytime, I cannot understand what is happening.
Do you have any idea ?
For more context here is my stack: I run mongodb 4.2.2 in a replicaset inside a kubernetes cluster.
I use a kubernetes scheduled job that launches a simple shell script: https://hub.docker.com/r/zoov/mongodb-gcs-backup
Here is the information of mongorestore inside the container
mongorestore version: r4.2.2
git version: a0bbbff6ada159e19298d37946ac8dc4b497eadf
Go version: go1.12.13
Thanks for your help