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

Mongos tries to create user database on config server when replica set name is 'admin'

    • 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 '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"
      	}
      })
      
      Show
      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

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

            Created:
            Updated:
            Resolved: