[SERVER-7931] Long-running ops block killOp/currentOp when using authentication from a localhost connection Created: 13/Dec/12  Updated: 11/Jul/16  Resolved: 17/Dec/12

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 2.3.1
Fix Version/s: 2.3.2

Type: Bug Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

This is because the check to see if there are any admin users blocks acquiring the read lock on the admin database.

If we could trylock a database-level lock, then we could trylock the admin DB, and if we can't get the lock just used our cached knowledge of whether or not the admin user exists.



 Comments   
Comment by auto [ 17/Dec/12 ]

Author:

{u'date': u'2012-12-15T00:38:27Z', u'name': u'Spencer T Brody', u'email': u'spencer@10gen.com'}

Message: SERVER-7931 Re-enable some tests to run with auth
Branch: master
https://github.com/mongodb/mongo/commit/61eef01258c81d728dda432f2f50a9cacaddb4e0

Comment by Spencer Brody (Inactive) [ 17/Dec/12 ]

Git commit hook didn't seem to update this ticket: https://github.com/mongodb/mongo/commit/1f8532cdd688041813c4ccf8d3143ba5a7ceee4f - "SERVER-7572 SERVER-7931 Check for existance of admin user only at the beginning of every request"

Comment by auto [ 14/Dec/12 ]

Author:

{u'date': u'2012-12-14T17:48:52Z', u'email': u'spencer@10gen.com', u'name': u'Spencer T Brody'}

Message: SERVER-7931 Skip jstests/mr_killop.js when running tests with auth
Branch: master
https://github.com/mongodb/mongo/commit/cc29e330d50c79e7df5e0dfdc72b26f9b62b7ad2

Comment by auto [ 14/Dec/12 ]

Author:

{u'date': u'2012-12-14T17:47:59Z', u'email': u'spencer@10gen.com', u'name': u'Spencer T Brody'}

Message: SERVER-7931 Skip jstests/evalf.js when running tests with auth
Branch: master
https://github.com/mongodb/mongo/commit/96ca30b9fba844e543e5a0b223266af4c1683799

Comment by auto [ 14/Dec/12 ]

Author:

{u'date': u'2012-12-13T21:06:53Z', u'email': u'spencer@10gen.com', u'name': u'Spencer T Brody'}

Message: SERVER-7931 Skip jstests/evald.js when running tests with auth
Branch: master
https://github.com/mongodb/mongo/commit/48c44465bd3500a62ec122eeda64e410b3cf8f0c

Comment by auto [ 14/Dec/12 ]

Author:

{u'date': u'2012-12-13T19:51:38Z', u'email': u'spencer@10gen.com', u'name': u'Spencer T Brody'}

Message: SERVER-7931 Skip jstests/sharding/features3.js when running tests with auth
Branch: master
https://github.com/mongodb/mongo/commit/f185d93204c1f189251c5b7c33c1ecf83e3743d7

Comment by Andy Schwerin [ 14/Dec/12 ]

Will need to reenable jstests/sharding/features3.js, jstests/evald.js, jstests/eval4.js, and jstests/mr_killop.js when running with auth enabled, after this bug is fixed.

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