[SERVER-44564] Use predicates in waitForConditionOrInterruptUntil instead of while loop for writeConcern waiting [v4.2] Created: 11/Nov/19  Updated: 06/Dec/22  Resolved: 25/Nov/19

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

Type: Task Priority: Major - P3
Reporter: Lingzhi Deng Assignee: Backlog - Replication Team
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Replication
Participants:

 Description   

After SERVER-43987 is backported, predicates are required with OperationContext::waitForConditionOrInterrupt(). Master currently uses a future-based API but 4.2 still uses condVar and waitForConditionOrInterrupt for writeConcern waiting. The backport of SERVER-43987 was done in a way that tried to minimize code changes. But that made the code less readable. We should make better use of the required predicates for better readability.


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