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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

          Assignee:
          Daniel Alabi (Inactive)
          Reporter:
          Daniel Alabi (Inactive)
          Votes:
          0 Vote for this issue
          Watchers:
          5 Start watching this issue

            Created:
            Updated:
            Resolved: