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

Adding a $external user in cluster (via mongos) causes $external creation in config.databases

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Security, Sharding
    • None
    • Minor Change
    • ALL
    • Hide

      st = new ShardingTest({name: "external-test", shards: 1);
      st.getDB("config").databases.find({_id: "$external"});
      st.getDB("$external").createUser({user: "test", roles: [

      {db: "admin", role: "root"}

      ]})
      st.getDB("config").databases.find({_id: "$external"});

      Show
      st = new ShardingTest({name: "external-test", shards: 1); st.getDB("config").databases.find({_id: "$external"}); st.getDB("$external").createUser({user: "test", roles: [ {db: "admin", role: "root"} ]}) st.getDB("config").databases.find({_id: "$external"});

    Description

      Adding a "$external" user via mongos causes addition of an entry into config.databases as if the databases is created on one of the shard.

      2015-04-20T14:21:31.416-0400 I SHARDING [conn39] couldn't find database [$external] in config db
      2015-04-20T14:21:31.425-0400 I SHARDING [conn39]         put [$external] on: shard01:shard01/aks-osx.local:27018
      

      Attachments

        Activity

          People

            kaloian.manassiev@mongodb.com Kaloian Manassiev
            anil.kumar Anil Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: