[SERVER-27404] Mongo shell `--host` option for replica sets broken in 3.4 Created: 12/Dec/16  Updated: 18/Jan/17  Resolved: 13/Dec/16

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

Type: Bug Priority: Major - P3
Reporter: Christian Howe Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-27289 Shell: mongo --host replSet/Host:Port... Closed
Related
related to SERVER-27731 MongoDB 3.4.1 shell still unable to c... Closed
Operating System: ALL
Participants:

 Description   

[This commit](https://github.com/mongodb/mongo/commit/88b540f0c14c7ab8af708aecc4cd6df83081b32e) seems to have broken using replica sets with the `--host` option, which is documented [here](https://docs.mongodb.com/manual/reference/program/mongo/#cmdoption--host). I currently get the following error when trying to use this option: "Error: Failed to parse mongodb:// URL: mongodb://default_set_3.4/172.17.0.7:27017,172.17.0.5:27017,172.17.0.6:27017". Note that this works on MongoDB versions as far back as 2.4, and yet is broken on 3.4. The root cause of this feature breaking in 3.4 seems to be the lack of testing of this option.



 Comments   
Comment by Kelsey Schubert [ 13/Dec/16 ]

Hi cjhowe,

Thank you for the report. We are currently working to correct this issue in SERVER-27289.

Please watch SERVER-27289 for updates.

Kind regards,
Thomas

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