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

Consolidate PlanExecutor::DEAD and PlanExecutor::FAILURE

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.8
    • Affects Version/s: None
    • Component/s: Querying
    • Fully Compatible
    • Query 2019-01-28

      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.

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

              Created:
              Updated:
              Resolved: