[SERVER-50656] Add cancelation support to WaitForMajorityService using CancelationTokens Created: 31/Aug/20  Updated: 29/Oct/23  Resolved: 18/Mar/21

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.9.0

Type: New Feature Priority: Major - P3
Reporter: Matthew Saltz (Inactive) Assignee: George Wangensteen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-53389 TenantMigration{Donor, Recipient}Serv... Backlog
Related
related to SERVER-54155 Standardize onCreate/onDestroy patter... Closed
related to SERVER-54408 Rewrite AsyncTry-until to not use fut... Closed
Backwards Compatibility: Fully Compatible
Sprint: Service arch 2020-12-28, Service Arch 2021-03-08, Service Arch 2021-03-22
Participants:
Linked BF Score: 120
Story Points: 3

 Description   

waitUntilMajority should accept a CancelationToken. When the token is canceled, it should remove the appropriate OpTime from this map and the request's future must be signalled, but only if this was the only request pointing to that OpTime. This may require us to change from using SharedPromise to instead use something like a multimap with multiple promises/futures per OpTime.



 Comments   
Comment by Githook User [ 17/Mar/21 ]

Author:

{'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com', 'username': 'gewa24'}

Message: SERVER-50656 Add cancellation support to WaitForMajorityService
Branch: master
https://github.com/mongodb/mongo/commit/4fa2fcb16107c860448b58cd66798bae140e7263

Comment by Githook User [ 04/Feb/21 ]

Author:

{'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com', 'username': 'gewa24'}

Message: Revert "SERVER-50656 Add cancellation support to WaitForMajorityService"

This reverts commit da77452821c355346d873a6b31160c101adc60de.
Branch: master
https://github.com/mongodb/mongo/commit/3b4c40b136da419512bf6501655473db552efb11

Comment by Githook User [ 04/Feb/21 ]

Author:

{'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com', 'username': 'gewa24'}

Message: SERVER-50656 Add cancellation support to WaitForMajorityService
Branch: master
https://github.com/mongodb/mongo/commit/da77452821c355346d873a6b31160c101adc60de

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