[SERVER-17232] Mongos tries to create user database on config server when replica set name is 'admin' 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
related to SERVER-17231 Can't find shard to put test db on wh... Closed
Backwards Compatibility: Minor Change
Operating System: ALL
Steps To Reproduce:

Create a sharded environment with one shard, a replica set named 'admin' and then try to insert a single document into some unsharded collection. You will get this error:

mongos> db.unsharded.insert({x:1})
WriteResult({
	"nInserted" : 0,
	"writeError" : {
		"code" : 14037,
		"errmsg" : "can't create user databases on a --configsvr instance"
	}
})

Sprint: Sharding 1 04/03/15
Participants:

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

Author:

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

Message: SERVER-17232 Don't return connection to config server when shardName is admin
Branch: master
https://github.com/mongodb/mongo/commit/3a0a2fae791228ac0b883c6238bf095a608e4807

Comment by Spencer Brody (Inactive) [ 09/Feb/15 ]

daniel.alabi@10gen.com, does this happen if you specify an explicit shard name different from 'admin' when adding the replset as a shard? Same question for SERVER-17231.

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