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

Consolidate PlanExecutor::DEAD and PlanExecutor::FAILURE

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.1.8
    • Querying
    • Fully Compatible
    • Query 2019-01-28

    Description

      PlanExecutor::getNext() has two return codes to indicate that an error occurred during query execution: DEAD and FAILURE. These two return codes don't have a strong conceptual distinction, and nearly all callers handle them in the same way. Furthermore, there are only a few known ways in which a PlanExecutor can produce DEAD:

      As a simplification, we could change the PlanExecutor to return FAILURE in all cases, which would prevent callers from having to remember to handle multiple getNext() error codes.

      Attachments

        Activity

          People

            pawel.terlecki@mongodb.com Pawel Terlecki
            david.storch@mongodb.com David Storch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: