[SERVER-5467] Improve Shell Message on Server Shutdown Created: 30/Mar/12  Updated: 17/Jul/20  Resolved: 17/Jul/20

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.1.0
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: Yiling Lu Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Participants:

 Description   

After issuing db.shutdownServer() from the shell, the following error message will be printed out. I believe these messages are somewhat confusing for users, and made the product less polished in its presentation. Wouldn't be nice if the message could be changed to something along the line of "Shell was disconnected from server."?

> db.shutdownServer();
Tue Mar 27 15:42:36 DBClientCursor::init call() failed
Tue Mar 27 15:42:36 query failed : admin.$cmd

{ shutdown: 1.0 }

to:
127.0.0.1
server should be down...
Tue Mar 27 15:42:36 trying reconnect to 127.0.0.1
Tue Mar 27 15:42:37 reconnect 127.0.0.1 failed couldn't connect to
server 127.0.
0.1
Tue Mar 27 15:42:37 Error: error doing query: unknown shell/
collection.js:151



 Comments   
Comment by Jessica Sigafoos [ 17/Jul/20 ]

In the new shell (mongosh), we try to always return useful error and user-facing messages.  When shutdown server is implemented, we will ensure the output is readable and understandable.

Generated at Thu Feb 08 03:08:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.