Misleading error

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Unassigned
              Reporter:
              Charlie Page (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: