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

repeat_queries passthrough leaks cursors

    • Type: Icon: Engineering Test Engineering Test
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • QO 2023-02-06, QO 2023-02-20

      When jstests/libs/override_methods/rerun_queries.js runs a command more than once, it ignores all but the last result. Commands like find and aggregate can include a cursor in the response, so we should explicitly close the cursor if we're not returning it to the original caller.

      This came up while fixing SERVER-73024: patch builds were failing with "System failure", we think because the open cursors are using a lot of memory.

            Assignee:
            david.percy@mongodb.com David Percy
            Reporter:
            david.percy@mongodb.com David Percy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: