[SERVER-67370] Resharding metrics future callback can extend lifetime of ReshardingRecipient services Created: 17/Jun/22  Updated: 29/Oct/23  Resolved: 23/Jun/22

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

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Fixed Votes: 0
Labels: sharding-nyc-subteam1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-73955 ReshardingMetrics Can Outlive Reshard... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2022-06-27
Participants:
Linked BF Score: 33
Story Points: 2

 Description   

during stepUp and trigger invariant when rebuilding new instances.

For easier repro add sleepmillis(100) right after callback while running ReshardingRecipientServiceTest::StepDownStepUpEachTransition cpp test.



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

Author:

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

Message: SERVER-67370 Destroy instance metrics object so it's lifetime will not be tied to the future callback function object
Branch: master
https://github.com/mongodb/mongo/commit/1b1d8538d0dab776ecccadcecc64f6d7eaebb5e7

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