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

Misleading error

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • None
    • ALL

    Description

      Create zero shard sharded setup, attempt to add the first shard without first doing "use admin".
      The error message for subsequent shards tell use the user to "use admin" which makes sense. The first shard to be added does the following:

      mongos> db.runCommand(

      {addShard:"rs1/addShard:charlie-VirtualBox:27012", name:"shard01"}

      )
      Wed Feb 5 15:15:37.422 error:

      { "$err" : "error creating initial database config information :: caused by :: can't find a shard to put new db on", "code" : 10185 }

      at src/mongo/shell/query.js:128

      Having the first error message tell the user to use admin is the desired behavior.

      Attachments

        Activity

          People

            Unassigned Unassigned
            charlie.page@10gen.com Charlie Page
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: