[SERVER-27417] Failed to parse host option if replica set name is specified Created: 14/Dec/16  Updated: 14/Dec/16  Resolved: 14/Dec/16

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

Type: Bug Priority: Minor - P4
Reporter: Alexey Butalov 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
Operating System: ALL
Participants:

 Description   

MongoDB 3.4.0 Windows binary community edition, MongoDB 3.4.0 Windows binary Enterprise.
Command like this:

mongo.exe  --host rs34/host1:27341,host2:27342,host3:27343 

raises the error

2016-12-14T15:12:39.703+0500 E QUERY    [main] Error: Failed to parse mongodb:// URL: mongodb://rs34/host1:27341,host2:27342,host3:27343 :
connect@src/mongo/shell/mongo.js:234:13
@(connect):1:6
exception: connect failed

Using mongodb:// connection string works fine.
Versions 2.6,3.2 connect successful in the both cases.



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

Hi alexeybut,

Thank you for reporting this issue. We are tracking this bug in SERVER-27289. Please feel free to watch SERVER-27289 for updates.

Thanks again,
Thomas

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