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

Mongo shell should surface errors from open() syscall

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Shell
    • None

    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

        Activity

          People

            kevin.pulo@mongodb.com Kevin Pulo
            nicholas.cottrell@mongodb.com Nic Cottrell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: