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

Support specifying multiple mongos processes in the shell URI connection string

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Gone away
    • 3.4.14
    • None
    • Shell
    • None
    • Service Arch

    Description

      The mongo shell should allow multiple mongos processes to be specified in a connection string URI, with the expectation that this would connect to the first available mongos process.

      Drivers support this behaviour for the standard connection string URI format, but the mongo shell returns an unhelpful error message in MongoDB 3.4:

      FailedToParse: Cannot list multiple servers in URL without 'replicaSet' option

      The replicaSet option cannot be used with a mongos connection.

      For now the only workaround I have is with a shell script and leveraging the 'echo $?' result to continue iterating through the list of available host:port of mongos processes.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-servicearch Backlog - Service Architecture
              enrique.garneloprediger@mongodb.com Enrique Garnelo Prediger
              Votes:
              4 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: