[SERVER-83092] Eliminate the unnecessary majority check in wait for write concern Created: 09/Nov/23  Updated: 25/Jan/24  Resolved: 08/Dec/23

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

Type: Task Priority: Major - P3
Reporter: Wenbin Zhu Assignee: Kishore Devireddy
Resolution: Fixed Votes: 0
Labels: PM-3489-Milestone-MiscImprovement-CP
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-85600 [Milestone] Misc Improvement Checkpoint In Progress
Duplicate
is duplicated by SERVER-83595 Collection drop doesn't need to wait ... Closed
Related
related to SERVER-83595 Collection drop doesn't need to wait ... Closed
is related to SERVER-47205 Stopping dropping snapshots after saf... Closed
Assigned Teams:
Replication
Backwards Compatibility: Fully Compatible
Sprint: Repl 2023-11-27, Repl 2023-12-11
Participants:
Linked BF Score: 5

 Description   

For majority write concern, in addition to waiting for the committed snapshot to advance past the write, it also waits for a majority of nodes to have their lasDurable (j: true) or lastApplied (j: false) to advance past the write. In fact waiting for the committed snapshot is sufficient in most cases and so the additional wait is usually a no-op and only needed when writeConcernMajorityJournalDefault is false and j: true. We can change it to only perform the additional wait in that particular case.

We can also remove the wait for drop pending collections step as part of waiting for majority since that's no longer necessary today.



 Comments   
Comment by Kishore Devireddy [ 08/Dec/23 ]

fixed

Comment by Kishore Devireddy [ 08/Dec/23 ]

https://spruce.mongodb.com/version/657257de32f417a14e85e0e1/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC

Comment by Githook User [ 08/Dec/23 ]

Author:

{'name': 'Kishore Devireddy', 'email': 'kishore.devireddy@mongodb.com', 'username': 'kishorekrd'}

Message: SERVER-83092: Eliminate the unnecessary majority check in wait for write concern

GitOrigin-RevId: 5899ae739bb03a3ee064271b47e64168f778143b
Branch: master
https://github.com/mongodb/mongo/commit/0fcaec685dda6102486e30ea4311cb8c581f870d

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