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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.2.0-rc2, 4.3.1
    • Affects Version/s: 4.1.11
    • Component/s: JavaScript
    • None
    • Fully Compatible
    • v4.2
    • Dev Tools 2019-06-03, Dev Tools 2019-06-17
    • 37

      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.

            Assignee:
            gabriel.russell@mongodb.com Gabriel Russell (Inactive)
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: