[SERVER-66029] Fix lifetime of timers in refineCollectionShardKey transaction callback Created: 27/Apr/22  Updated: 29/Oct/23  Resolved: 02/May/22

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

Type: Bug Priority: Major - P3
Reporter: Jack Mulrow Assignee: Jack Mulrow
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0
Sprint: Sharding 2022-05-02
Participants:
Linked BF Score: 135

 Description   

refineCollectionShardKey uses the transaction API and captures a struct of timers by reference for the API's callback, but the callback runs on an executor so may run after the calling context has gone out of scope after an interruption, like at stepdown.



 Comments   
Comment by Githook User [ 02/May/22 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-66029 Fix lifetime of timers in refineCollectionShardKey transaction callback

(cherry picked from commit 5cf29656a8c3a61fb1696efdf8ddad69ca5855dd)
Branch: v6.0
https://github.com/mongodb/mongo/commit/b8e2306d66f5e9c644b3966f1a7e7d42b9d3731d

Comment by Githook User [ 28/Apr/22 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-66029 Fix lifetime of timers in refineCollectionShardKey transaction callback
Branch: master
https://github.com/mongodb/mongo/commit/5cf29656a8c3a61fb1696efdf8ddad69ca5855dd

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