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

Interrupt code gets converted to ErrorCodes::Interrupted during $where execution

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.1.11
    • Fix Version/s: 4.2.0-rc2, 4.3.1
    • Component/s: JavaScript
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.2
    • Sprint:
      Dev Tools 2019-06-03, Dev Tools 2019-06-17
    • Linked BF Score:
      37

      Description

      For example, when a step down happens, the waitForCondition call will trigger with an assertion of the correct interrupt code. It will then store the interrupt code via the catch block, and at the same time call MozJSImplScope::kill, however, since the opCtx is not registered in the implscope, it will fail this condition and go ahead and set the status to interrupted. Then, it will call check error inside invoke, which will see that the status was set to interrupt and throw the interrupted error.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: