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

singleShard error in addUser

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.7
    • Component/s: Security, Sharding
    • Labels:
      None
    • ALL

      Hi there!
      I am trying to create a user with the same name after dropping the database. Physically, there is no users in this database on mongod on the other shard. As a result of the following command, user is created only on the one shard, and applications throws unauthorised exceptions.
      mongos>db.addUser("app","xxx"){
      "singleShard" : "mongodb-sh2/mongodb02d.load.net:27017,mongodb02f.load.net:27017,mongodb02g.load.net:27017",
      "n" : 0,
      "lastOp" : NumberLong("5806174783460605953"),
      "connectionId" : 98514,
      "err" : null,
      "ok" : 1
      }
      {
      "user" : "app",
      "readOnly" : false,
      "pwd" : "9a72265ed14a1f833604151e412894d4",
      "_id" : ObjectId("5093ad34b969a220a604e226")
      }

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            gabol Anton V. Volokhov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: