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"
}
})
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"
}
})
Sharding 1 04/03/15
related to
SERVER-17231Can't find shard to put test db on when shard replica set name is 'config'