Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-78722

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

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

      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 Unassigned
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: