[SERVER-67191] PrimaryOnlyService should destroy the old instances before launching async rebuild Created: 10/Jun/22  Updated: 29/Oct/23  Resolved: 15/Jun/22

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

Type: Task Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
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-67189 ShardingDataTransformInstanceMetrics ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2022-06-27
Participants:
Linked BF Score: 33

 Description   

The old instances are destroyed at the end of the call of onStepUp when the stack unwinds, but since the new instances are rebuild asynchronously, there is a very small window where the lifetime of the old instance and new instance can overlap.



 Comments   
Comment by Githook User [ 14/Jun/22 ]

Author:

{'name': 'Randolph Tan', 'email': 'randolph@10gen.com', 'username': 'renctan'}

Message: SERVER-67191 PrimaryOnlyService should destroy the old instances before launching async rebuild
Branch: master
https://github.com/mongodb/mongo/commit/52e495da7f598bbdc3ce0c09a5b2091e569fe694

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