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

Poor error message when trying to add shard with duplicate DB name

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.0.2
    • Component/s: Sharding
    • Labels:
      None
    • ALL

      When running a sharded cluster that contains database 'foo', doing 'addShard' with a server that already contains a database named 'foo', we get an unhelpful error:

      "couldn't connect to new shard mongos connectionpool: connect failed repl2/airtop.local:37017 : connect failed to set repl2/airtop.local:37017"

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: