Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1914

Issues with parallel mongosh executions

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • 3
    • Iteration U (Jan 27 - Feb 10), Iteration Venus
    • Not Needed
    • Developer Tools

      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 

       

            Assignee:
            alena.khineika@mongodb.com Alena Khineika
            Reporter:
            alena.khineika@mongodb.com Alena Khineika
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: