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

Running a script using 'mongo' on replication set fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.4.2
    • Fix Version/s: 3.4.11, 3.6.0-rc0
    • Component/s: Shell
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v3.4
    • Steps To Reproduce:
      Hide

      OS: CentOS Linux release 7.1.1503 (Core)

      Just run this line.
      mongo --host rs0/machine48 management some.js

      Show
      OS: CentOS Linux release 7.1.1503 (Core) Just run this line. mongo --host rs0/machine48 management some.js
    • Sprint:
      Platforms 2017-07-31, Platforms 2017-09-11, Platforms 2017-10-02, Platforms 2017-10-23

      Description

      rIt seems like there's a regression bug

      Prior to 3.4.2 this command succeeded:
      mongo --host rs0/machine48 management some.js

      The current output I'm getting is:

      MongoDB shell version v3.4.2
      connecting to: mongodb://rs0/machine48:27017/management
      2017-02-22T19:49:33.827+0200 E QUERY [thread1] Error: Failed to parse mongodb:// URL: mongodb://rs0/machine48:27017/management :
      connect@src/mongo/shell/mongo.js:237:13
      @(connect):1:6
      exception: connect failed

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                4 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: