Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-40693

Mongo shell should surface errors from open() syscall

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Shell
    • Labels:
      None
    • Case:

      Description

      A customer received the following error after running a very long aggregation call:

      2019-04-16T17:22:08.856+0200 E - [main] Error saving history file: FileOpenFailed: Unable to open() file : Unknown error
      2019-04-16T17:22:08.856+0200 I CONTROL [main] shutting down with code:0
      

      This seems to be from src/mongo/shell/dbshell.cpp

      The shell seems to be unable to open the file it uses to save the command history. Can we change the logic to surface the underlying error code the open() syscall is throwing?

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: