[SERVER-40693] Mongo shell should surface errors from open() syscall Created: 17/Apr/19 Updated: 11/Jul/19 Resolved: 11/Jul/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Nic Cottrell | Assignee: | Kevin Pulo |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||
| Description |
|
A customer received the following error after running a very long aggregation call:
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? |
| Comments |
| Comment by Kevin Pulo [ 11/Jul/19 ] | |
|
Closing as a duplicate of | |
| Comment by Kevin Pulo [ 18/Apr/19 ] | |
|
It does. The error is generated at https://github.com/mongodb/mongo/blob/r4.0.9/src/mongo/shell/linenoise.cpp#L2771
So the reason in this case is "Unknown error". But there is another clue — the filename appears to be the empty string "". So this appears to be |