Hi team,
A user reached out to us on the Community Forums that their mongod is crashing when doing a mongostore against a time series collection. I tried to reproduce the issue on my end as well and found that the mongod indeed crashes with invariant failure and signal 6 under certain scenarios.
This will happen when:
- auth is used and
- mongorestore was called using a file parameter mongorestore --username xx --password xx <file>
And will not happen when:
- auth is not used
- the file is not specified in mongorestore
Versions:
This will also happen on a mongod that is part of a replica set. This appears to affect MongoDB 6.0.1. I also tried with version 5.0.17 as well as 6.0.6 and it affects them too. mongorestore and mongodump versions were 100.6.0 (tried with 100.7.0 as well).
I'm attaching the code, mongorestore error, logs as well as the forum post of the user who reported the issue.
Kindly let me know if anything else is required from my end.
- links to