[SERVER-47027] mongo shell should only display Atlas message on connection timeout Created: 20/Mar/20  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Admin
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Matthew Thompson Assignee: Backlog - Query Optimization
Resolution: Unresolved Votes: 2
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Optimization
Participants:
Case:

 Description   

Currently, if you try to connect to an Atlas cluster with the mongo shell and an error is encountered, the shell spits out the following before the error is logged:

 
 
*** It looks like this is a MongoDB Atlas cluster. Please ensure that your IP whitelist allows connections from your network.
 

This can be helpful in some situations, but it can also deter a user from seeing what the actual error was (eg. authentication failure).

This messaging was added in SERVER-38625, and perhaps could use some improvement such that it is only displayed when a) the target is an Atlas cluster AND b) the cause of failure is due to a connection timeout.


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