[SERVER-70010] Stop using getKillStatus to check for OperationContext interruption. Created: 27/Sep/22  Updated: 30/Jan/24  Resolved: 03/Oct/22

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

Type: Bug Priority: Major - P3
Reporter: Matt Diener (Inactive) Assignee: Matt Diener (Inactive)
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-69496 InterruptedAtShutdown can be thrown w... Closed
Related
related to SERVER-56251 Alleviate problems that arise when Op... Backlog
related to SERVER-85912 Audit code paths explicitly checking ... Backlog
Backwards Compatibility: Minor Change
Operating System: ALL
Sprint: Service Arch 2022-10-03, Service Arch 2022-10-17
Participants:

 Description   

`getKillStatus` captures a subset of the situations under which an OperationContext may be interrupted. It should almost never be used outside of the SA code base.

We provided incorrect guidance for tasks logged under SERVER-56251, and those should be addressed ASAP.

Additionally, a quick look should be done in other places to ensure `getKillStatus` is not being used inappropriately.

This is being done in lieu of SERVER-69496, to avoid changing internal implementation details of OperationContext `kill`.



 Comments   
Comment by Matt Diener (Inactive) [ 03/Oct/22 ]

Backwards compatibility is dependent on the changes that went in before this. Estimated to be fairly minor if such changes are necessary.

Comment by Githook User [ 03/Oct/22 ]

Author:

{'name': 'Matt Diener', 'email': 'matt.diener@mongodb.com', 'username': 'mattdiener'}

Message: SERVER-70010 Fix opCtx interruption checks in execution codebase
Branch: master
https://github.com/mongodb/mongo/commit/edd8bd445afa1779fa453b1605f02b94afe6fde3

Comment by Githook User [ 03/Oct/22 ]

Author:

{'name': 'Matt Diener', 'email': 'matt.diener@mongodb.com', 'username': 'mattdiener'}

Message: SERVER-70010 fix opCtx interruption checks in replication codebase
Branch: master
https://github.com/mongodb/mongo/commit/29156d5721db30c199deed16f15efbefb88b7af3

Comment by Githook User [ 03/Oct/22 ]

Author:

{'name': 'Matt Diener', 'email': 'matt.diener@mongodb.com', 'username': 'mattdiener'}

Message: SERVER-70010 fix opCtx interruption checks in query codebase
Branch: master
https://github.com/mongodb/mongo/commit/315cab5c61a3d177ee6f68d9fd14ffde434039d1

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