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

BatchedDeleteStage doesn't indicate when completion is caused by pass targets

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • Execution Team 2022-05-16

      A BatchedDeleteStage can return PlanStage::IS_EOF in two different scenarios
      (1) the child returned IS_EOF, there is nothing left to fetch, and the buffer has been drained
      (2) a pass target was met, and even if there are more documents to fetch from the child, the pass is doneĀ 

      For batched deletes that specify pass targets, such as the TTLMonitor, it is useful to differentiate between the two scenarios to know if the command should be executed again

            Assignee:
            haley.connelly@mongodb.com Haley Connelly
            Reporter:
            haley.connelly@mongodb.com Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: