[SERVER-54059] Create a JS test to prove listIndexes and listCollections run lock-free Created: 26/Jan/21  Updated: 29/Oct/23  Resolved: 19/Feb/21

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Dianna Hohensee (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-53829 Make listCollections and listIndexes ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2021-02-22
Participants:

 Description   

SERVER-53829 introduces this feature, but we do not have explicit test coverage. Should test that:

  • listIndexes can run concurrently with a MODE_X collection lock holding operation.
  • listCollections can run concurrently with a MODE_X database lock holding operation
    • ideally MODE_X db lock, but I'm not sure whether we have those anymore, so just proving that listCollections can run concurrently with a MODE_X collection lock on a collection that it returns in the report also proves lock-free operation.


 Comments   
Comment by Githook User [ 19/Feb/21 ]

Author:

{'name': 'Dianna Hohensee', 'email': 'dianna.hohensee@mongodb.com', 'username': 'DiannaHohensee'}

Message: SERVER-54059 Test that listIndexes, listCollections and mapReduce run lock-free
Branch: master
https://github.com/mongodb/mongo/commit/9c6c4ab0df119da951f55106a5e3e8b85c134589

Generated at Thu Feb 08 05:32:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.