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

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 '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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

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

            Created:
            Updated:
            Resolved: