[SERVER-78722] CancelableOperationContext::cancel() should pass a Status through to operations checking for interrupt, rather than a generic ErrorCodes::Interrupted & "operation was interrupted" Created: 06/Jul/23  Updated: 16/Aug/23

Status: Open
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Dianna Hohensee (Inactive) Assignee: Backlog - Service Architecture
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-78437 OperationContext::markKilled(ErrorCod... Closed
Related
related to SERVER-56251 Alleviate problems that arise when Op... Backlog
Assigned Teams:
Service Arch
Sprint: Execution NAMR Team 2023-08-21
Participants:

 Description   

Have CancelableOperationContext pass a 'cancel status' through to the OperationContext::markKilled() call, to replace the generic Status(ErrorCodes::Interrupted "operation was interrupted") that's used today. So .cancel() calls would be turned into cancel(status).

I would like to get rid of / reduce the implicit generic error codes surfaced from interrupts (SERVER-78437) because it makes debugging more difficult: rather I want callers to be required to consider more informative messages.


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