[SERVER-77514] Remove the usage of the ParallelBatchWriterMutex from the ShardServerCatalogCacheLoader Created: 26/May/23  Updated: 29/Oct/23  Resolved: 03/Jul/23

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Allison Easton
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2023-06-12, Sharding EMEA 2023-06-26, Sharding EMEA 2023-07-10
Participants:

 Description   

The PBWM mutex is one of the tools available to ensure that readers on secondary nodes do not see intermediate data while a batch of oplog is being applied, the other being reading at the latest applied timestamp. The latter (supposedly) happens automatically on all secondary read paths, but in the SSCCL we are explicitly taking it.

This ticket is to (1) investigate what was the historic reason to have to acquire it explicitly in the SSCCL, rather than relying on the DBDirectClient invocations it makes to do it and (2) if feasible, to remove it and fix any fallout.

This work should be capped at 1 iteration (2 weeks) after which if we still haven't been able to remove it, we will reassess the findings from (1) above.



 Comments   
Comment by Githook User [ 03/Jul/23 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-77514 Remove the usage of the ParallelBatchWriterMutex from the ShardServerCatalogCacheLoader
Branch: master
https://github.com/mongodb/mongo/commit/e9e86bf3479d93630ea300530ed9affc14cf069c

Generated at Thu Feb 08 06:35:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.