As part of exit handling, the shell always calls shellHistoryDone(). However, there are some code paths that do not hit shellHistoryInit(); for such runs of the shell, the shell will output this message on exit:
2017-09-13T10:30:28.490-0400 E - [main] Error saving history file: FileOpenFailed: Unable to open() file : No such file or directory
I can reproduce this by running the shell with this command and then pressing CTRL-C:
./mongo --nodb --eval "sleep(5000)"
- is duplicated by
-
SERVER-40693 Mongo shell should surface errors from open() syscall
- Closed
- is related to
-
SERVER-44490 The mongo command connecting mongodb instance hangs forever.
- Closed