Mongo shell should surface errors from open() syscall

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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?

              Assignee:
              Kevin Pulo
              Reporter:
              Nic Cottrell
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: