[SERVER-19810] mongos requires queries on $cmd.sys.inprog to use "admin" database Created: 06/Aug/15  Updated: 21/Sep/15  Resolved: 13/Aug/15

Status: Closed
Project: Core Server
Component/s: Admin, Diagnostics
Affects Version/s: None
Fix Version/s: 3.1.7

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Adam Midvidy
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-19806 Query on $cmd.sys.inprog requires lim... Closed
is related to SERVER-7775 Make special commands (inprog, killop... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platform 8 08/28/15
Participants:

 Description   

Reproduced with git version 0549805e. Sometime recently mongos began requiring queries on $cmd.sys.inprog to use "admin":

mongos> use test
switched to db test
mongos> db.$cmd.sys.inprog.find().limit(-1)
{ "ok" : 0, "errmsg" : "currentOp may only be run against the admin database.", "code" : 13 }

This is a backwards-compatibility break. mongod of the same version continues to allow any DB, as before.



 Comments   
Comment by Githook User [ 21/Sep/15 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: fix test_command_fq for recent mongos

See SERVER-19810.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/31a4a82475fe1c6597bc71654ababbb68dbf935e

Comment by Githook User [ 13/Aug/15 ]

Author:

{u'username': u'amidvidy', u'name': u'Adam Midvidy', u'email': u'amidvidy@gmail.com'}

Message: SERVER-19810 rewrite pseudocommands to run on the admin database
Branch: master
https://github.com/mongodb/mongo/commit/a833bbe82974ba5191e922e498b80b2d5edd69d3

Comment by Adam Midvidy [ 07/Aug/15 ]

Yes. This is a bug.

Comment by Andy Schwerin [ 07/Aug/15 ]

I believe this change was unintentional. adam.midvidy, do you agree?

Comment by Githook User [ 07/Aug/15 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: fix test_command_fq for recent mongos

See SERVER-19810.
Branch: 1.2.0-dev
https://github.com/mongodb/mongo-c-driver/commit/ca623c1491b2b16d5648b70d4cbcfa6b3fd84656

Generated at Thu Feb 08 03:52:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.