Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-27417

Failed to parse host option if replica set name is specified

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

      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 Unassigned
            Reporter:
            alexeybut Alexey Butalov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: