[SERVER-56899] PrimaryOnlyServiceTest TestService should wait for cancellation logic to run Created: 12/May/21  Updated: 29/Oct/23  Resolved: 13/May/21

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

Type: Bug Priority: Major - P3
Reporter: Matthew Saltz (Inactive) Assignee: Matthew Saltz (Inactive)
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
Operating System: ALL
Sprint: Service Arch 2021-05-17
Participants:
Linked BF Score: 127

 Description   

If the PrimaryOnlyService's executor is shutdown before the callback to set the completionPromise is run, it can cause the OpCtxInterruptedByShutdownTest to hang while waiting for the completion promise to be set.



 Comments   
Comment by Githook User [ 13/May/21 ]

Author:

{'name': 'Matthew Saltz', 'email': 'matthew.saltz@mongodb.com', 'username': 'saltzm'}

Message: SERVER-56899 Make PrimaryOnlyService TestService wait for cancellation logic to run
Branch: master
https://github.com/mongodb/mongo/commit/859d7208223ea0cb03270f6dcc9491a1afbd18fd

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