[SERVER-63519] Extend RecoverableCriticalSectionService to accommodate global user write blocking Created: 10/Feb/22  Updated: 29/Oct/23  Resolved: 09/Mar/22

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

Type: Task Priority: Major - P3
Reporter: Jordi Serra Torrens Assignee: Jordi Serra Torrens
Resolution: Fixed Votes: 0
Labels: auto-reverted
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-63611 Create in-memory state holder for use... Closed
is depended on by SERVER-64245 Make SetUserWriteBlockModeCoordinator... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-02-21, Sharding EMEA 2022-03-07, Sharding EMEA 2022-03-21
Participants:

 Description   

Currently RecoverableCriticalSectionService has machinery to block writes (and reads) to a given collection with stepdown-resiliency guarantees. In order do accommodate global user writes blocking, we need to extend it to:
(1) Support global blocking on any collection
(2) Blocking user writes must be able to coexist with the migration critical section (chunk migrations need to keep working even when user writes are blocked)



 Comments   
Comment by Githook User [ 09/Mar/22 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-63519 Extend RecoverableCriticalSectionService to accommodate global user write blocking

This reverts commit 5a3ec65dd434f7700ba2f2b173c35a7c4b022437.
Branch: master
https://github.com/mongodb/mongo/commit/2a4fcbbc9c063cb6a872e494e3870dec86d58540

Comment by xgen-buildbaron-user [ 09/Mar/22 ]

Ticket re-opened due to revert. noPassthrough began a consistent failure of jstests\noPassthrough\set_user_write_block_mode.js

Comment by Githook User [ 09/Mar/22 ]

Author:

{'name': 'auto-revert-processor', 'email': 'dev-prod-dag@mongodb.com'}

Message: Revert "SERVER-63519 Extend RecoverableCriticalSectionService to accommodate global user write blocking"

This reverts commit 4a1f01267e8723f4eba6aa264466fd6b27cb2ab9.
Branch: master
https://github.com/mongodb/mongo/commit/5a3ec65dd434f7700ba2f2b173c35a7c4b022437

Comment by Githook User [ 08/Mar/22 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-63519 Fix set_user_write_block_mode.js
Branch: master
https://github.com/mongodb/mongo/commit/93bea3ada838ef655721a77532ecc85cad4fb1ea

Comment by Githook User [ 08/Mar/22 ]

Author:

{'name': 'Jordi Serra Torrens', 'email': 'jordi.serra-torrens@mongodb.com', 'username': 'jordist'}

Message: SERVER-63519 Extend RecoverableCriticalSectionService to accommodate global user write blocking
Branch: master
https://github.com/mongodb/mongo/commit/4a1f01267e8723f4eba6aa264466fd6b27cb2ab9

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