-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Environment:OS:
node.js / npm versions:
Additional info:
Problem Statement/Rationale
As part of ETL process the user's shell scripts are using mongosh to execute queries and retrieve data from MongoDB. When multiple processes are attempting to use mongosh in parallel, they randomly observe Error: ENOENT: no such file or directory, lstat '~/.mongodb/mongosh/xxxxxxxxxxxxx_log' and process gets terminated.
It appears mongosh can only store 100 log files in ~/.mongodb/mongosh directory and the rest gets purged. The user couldn’t find a way to either disable logs generated by mongosh or increase the number of log files mongosh can hold.
Reported on forum: https://www.mongodb.com/community/forums/t/experiencing-issues-with-parallel-mongosh-executions/303822