-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.2.8, 3.3.10
-
Component/s: Sharding
-
Sharding
-
ALL
-
Running eval on an empty database on mongos returns an error on MongoDB 3.2.8 (and 3.3.10), but not on 3.0.12.
On 3.0.12:
mongos> db.serverStatus().version 3.0.12 mongos> db.dropDatabase() { "dropped" : "test", "ok" : 1 } mongos> db.runCommand({eval:function(){return 42}}) { "retval" : 42, "ok" : 1 }
On 3.2.8:
MongoDB Enterprise mongos> db.serverStatus().version 3.2.8 MongoDB Enterprise mongos> db.dropDatabase() { "info" : "database does not exist", "ok" : 1 } MongoDB Enterprise mongos> db.runCommand({eval:function(){return 42}}) { "ok" : 0, "errmsg" : "database test not found", "code" : 26 }
On 3.3.10:
MongoDB Enterprise mongos> db.serverStatus().version 3.3.10 MongoDB Enterprise mongos> db.dropDatabase() { "info" : "database does not exist", "ok" : 1 } MongoDB Enterprise mongos> db.runCommand({eval:function(){return 42}}) { "ok" : 0, "errmsg" : "database test not found", "code" : 26 }
- is related to
-
SERVER-17917 Config DB gets updated even though the user has no permissions
- Closed