[SERVER-66843] Use defensive programming in DeadlineFuture destructor Created: 27/May/22  Updated: 29/Oct/23  Resolved: 03/Jun/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.10, 5.3.3, 6.0.0-rc9

Type: Bug Priority: Major - P3
Reporter: Andrew Shuvalov (Inactive) Assignee: Andrew Shuvalov (Inactive)
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, v5.3, v5.0
Participants:
Linked BF Score: 130

 Description   

In src/mongo/db/process_health/deadline_future.h the destructor is using _timeoutCbHandle, which is optional. Optional is such for a reason, it doesn't have to be set.



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

Author:

{'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}

Message: SERVER-66843 Use defensive programming in DeadlineFuture destructor

(cherry picked from commit cae77d5066d76ec893a076b2b69fa6f409537a19)
Branch: v5.3
https://github.com/mongodb/mongo/commit/814159344a60a0e6e53c6fe6aeab3e4317f22396

Comment by Githook User [ 03/Jun/22 ]

Author:

{'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}

Message: SERVER-66843 Use defensive programming in DeadlineFuture destructor
Branch: v5.0
https://github.com/mongodb/mongo/commit/c01852d88959b1bae0582c780af764711da765ef

Comment by Githook User [ 03/Jun/22 ]

Author:

{'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}

Message: SERVER-66843 Use defensive programming in DeadlineFuture destructor
Branch: v6.0
https://github.com/mongodb/mongo/commit/c3b8c78465ca139c66aa243c2283a88d6d77b46a

Comment by Githook User [ 27/May/22 ]

Author:

{'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}

Message: SERVER-66843 Use defensive programming in DeadlineFuture destructor
Branch: master
https://github.com/mongodb/mongo/commit/cae77d5066d76ec893a076b2b69fa6f409537a19

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