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

Failed to parse host option if replica set name is specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Duplicate
    • 3.4.0
    • None
    • Shell
    • None
    • ALL

    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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: