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

In sharded system with no shards, cannot run commands against dbs other than "config" and "admin"

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

      If you have a new sharded system, where no shards have been actually added yet, its not possible to run any commands on dbs other than those that live on the config servers, even if those commands do not require writing anything to the database.

      For example:

      db.runCommand("serverStatus")
      2013-11-21T11:56:11.620-0500 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:131
      

      This also prevents creating users on non-admin dbs before the first shard has been added: SERVER-11126

            Assignee:
            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: