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

Warn in the shell when connecting to multiple servers that aren't mongos routers without the replicaSet name

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None

    Description

      Prior to 3.6, we used to error in all cases where a replica set name is not included. Obviously this meant you couldn't connect to multiple mongos routers. So we removed this restriction and in doing so made it easier for people to make a mistake of not including the replica set name when connecting to replica set nodes.

      mongo "mongodb://localhost:27017,localhost:27018,localhost:27019/"
      3.4.19 - FailedToParse: Cannot list multiple servers in URL without 'replicaSet' option
      3.6.10 - Connection success
      4.0.5 - Connection success

      I would like us to surface a warning in this case.

      Attachments

        Activity

          People

            robert.guo@mongodb.com Robert Guo (Inactive)
            alyson.cabral@mongodb.com Alyson Cabral (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: