[SERVER-17231] Can't find shard to put test db on when shard replica set name is 'config' Created: 09/Feb/15  Updated: 18/Sep/15  Resolved: 10/Mar/15

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.0.0-rc8
Fix Version/s: 3.1.1

Type: Bug Priority: Major - P3
Reporter: Daniel Alabi Assignee: Daniel Alabi
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-17232 Mongos tries to create user database ... Closed
Backwards Compatibility: Minor Change
Operating System: ALL
Steps To Reproduce:

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

Sprint: Sharding 1 04/03/15
Participants:

 Comments   
Comment by Githook User [ 09/Mar/15 ]

Author:

{u'username': u'alabid', u'name': u'alabid', u'email': u'alabidan@gmail.com'}

Message: SERVER-17231 Dissalow adding replica set shard with name: config
Branch: master
https://github.com/mongodb/mongo/commit/e6491d77039d58197aa3cf63323a0b6d47f6b859

Generated at Thu Feb 08 03:43:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.