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

Mongo shell should surface errors from open() syscall

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • 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@mongodb.com Kevin Pulo
            Reporter:
            nicholas.cottrell@mongodb.com Nic Cottrell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: