CancelableOperationContext::cancel() should pass a Status through to operations checking for interrupt, rather than a generic ErrorCodes::Interrupted & "operation was interrupted"

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • Execution NAMR Team 2023-08-21
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Unassigned
              Reporter:
              Dianna Hohensee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: