Failed to parse host option if replica set name is specified

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: 3.4.0
    • Component/s: Shell
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Unassigned
              Reporter:
              Alexey Butalov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: