-
Type: Improvement
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.4.14
-
Component/s: Shell
-
None
-
Service Arch
-
(copied to CRM)
The mongo shell should allow multiple mongos processes to be specified in a connection string URI, with the expectation that this would connect to the first available mongos process.
Drivers support this behaviour for the standard connection string URI format, but the mongo shell returns an unhelpful error message in MongoDB 3.4:
FailedToParse: Cannot list multiple servers in URL without 'replicaSet' option
The replicaSet option cannot be used with a mongos connection.
For now the only workaround I have is with a shell script and leveraging the 'echo $?' result to continue iterating through the list of available host:port of mongos processes.
- is duplicated by
-
SERVER-36173 connection string with multiple mongos fails
- Closed
- is related to
-
SERVER-6233 Support MongoDB URIs as mongo shell argument
- Closed