[SERVER-61754] dbCheck should not hold a strong collection lock during batches Created: 29/Nov/21  Updated: 29/Oct/23  Resolved: 17/Dec/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0, 5.0.6, 4.4.11

Type: Improvement Priority: Major - P3
Reporter: Josef Ahmad Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-61852 dbCheck should tryLock the collection... Closed
related to SERVER-61748 dbCheck should not hold a strong data... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0, v4.4
Sprint: Execution Team 2021-11-29, Execution Team 2021-12-13, Execution Team 2021-12-27
Participants:

 Description   

As a follow-up of SERVER-61748, explore reading a batch from a timestamp in order to avoid holding the collection lock in S mode.



 Comments   
Comment by Githook User [ 21/Dec/21 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-61754 dbCheck does not hold strong locks during batches

The dbCheck command accepts an optional (default true) parameter,
'snapshotRead', that uses point-in-time reads to check each batch. When
true, dbCheck does not block writes. When set to false, dbCheck reverts to
blocking writes.

(cherry picked from commit da10567348cf7883e2ec40a441e38efc17c23385)
(cherry picked from commit 46cc35de8bd699cc7b5c796fc66d6c6c4cf46218)
Branch: v4.4
https://github.com/mongodb/mongo/commit/78051c291e3d59d167f10ebe7e0770355875896d

Comment by Githook User [ 20/Dec/21 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-61754 dbCheck does not hold strong locks during batches

The dbCheck command accepts an optional (default true) parameter,
'snapshotRead', that uses point-in-time reads to check each batch. When
true, dbCheck does not block writes. When set to false, dbCheck reverts to
blocking writes.

(cherry picked from commit da10567348cf7883e2ec40a441e38efc17c23385)
Branch: v5.0
https://github.com/mongodb/mongo/commit/46cc35de8bd699cc7b5c796fc66d6c6c4cf46218

Comment by Githook User [ 17/Dec/21 ]

Author:

{'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}

Message: SERVER-61754 dbCheck does not hold strong locks during batches

The dbCheck command accepts an optional (default true) parameter,
'snapshotRead', that uses point-in-time reads to check each batch. When
true, dbCheck does not block writes. When set to false, dbCheck reverts to
blocking writes.
Branch: master
https://github.com/mongodb/mongo/commit/da10567348cf7883e2ec40a441e38efc17c23385

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