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

Can't find shard to put test db on when shard replica set name is 'config'

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.1
    • Affects Version/s: 3.0.0-rc8
    • Component/s: Sharding
    • None
    • Minor Change
    • ALL
    • Hide

      Create a sharded environment with one shard, a replica set named 'config'. Try to insert a document into an unsharded collection. You'll get the following error:

      mongos> db.unsharded.insert({x:1})
      2015-02-08T16:53:42.707-0500 E QUERY    Error: Error: error: {
      	"$err" : "error creating initial database config information :: caused by :: can't find a shard to put new db on",
      	"code" : 10185
      }
          at Error (<anonymous>)
          at DBCollection.insert (src/mongo/shell/collection.js:259:23)
          at (shell):1:14 at src/mongo/shell/collection.js:259
      
      Show
      Create a sharded environment with one shard, a replica set named 'config'. Try to insert a document into an unsharded collection. You'll get the following error: mongos> db.unsharded.insert({x:1}) 2015-02-08T16:53:42.707-0500 E QUERY Error: Error: error: { "$err" : "error creating initial database config information :: caused by :: can't find a shard to put new db on" , "code" : 10185 } at Error (<anonymous>) at DBCollection.insert (src/mongo/shell/collection.js:259:23) at (shell):1:14 at src/mongo/shell/collection.js:259
    • Sharding 1 04/03/15

          Assignee:
          daniel.alabi@10gen.com Daniel Alabi
          Reporter:
          daniel.alabi@10gen.com Daniel Alabi
          Votes:
          0 Vote for this issue
          Watchers:
          5 Start watching this issue

            Created:
            Updated:
            Resolved: