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

Ensure all DocumentSource::getNext() implementations check for interrupt

    • Fully Compatible
    • Query 2017-07-31

      Each implementation of the DocumentSource interface must override DocumentSource::getNext(), and any implementation of this method is required to check for interrupt during execution. This part of the contract is not enforced, so of course there are at least a few stages that do not follow it, such as $currentOp and $collStats.

      We should at least fix these two (and any others that are missing it), and consider making this contract enforceable, either through a test or through a non-virtual getNext() and a virtualized doGetNext() as we do for PlanStage::work() and PlanStage::doWork().

            Assignee:
            martin.neupauer@mongodb.com Martin Neupauer
            Reporter:
            charlie.swanson@mongodb.com Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: