Investigate changes in SERVER-110412: Allow external actors to kill operations so they return an error code other than Interrupted

XMLWordPrintableJSON

    • Type: Investigation
    • Resolution: Declined
    • Priority: Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed
    • Developer Tools

      Original Downstream Change Summary

      New error code:

       {
            code: 473,
            name: InterruptedDueToOverload,
            categories: [Interruption, SystemOverloadedError],
      }
      

      Only used as a potential kill code by killOp command.

      New option for killOp command: errorCode.

      Accepts only two error code values: 11601 (Interrupted) or 473 (InterruptedDueToOverload).
      Default value: 11601.

      Only a user with "killop" privilege can set this option.

      The new option is guarded under a featureFlagKillOpErrorCodeOverride.

      In the future this error code will be used by mongotune (and potentially other load shedding mechanisms).

      As we currently only plan to use this code internally, maybe we should not document it.

      Description of Linked Ticket

      We're considering adding code outside the server which will kill queries under overload. If this happens, we should ideally make sure the query returns a more specific code than Interrupted, for example ServerOverloaded.

       

      The exact details of how we would implement this (special version of killOp?) and what privileges are needed to do this will need fleshing out.

            Assignee:
            Unassigned
            Reporter:
            Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: