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

Return partial results from subset of shards when `maxTimeMS` and `allowPartialResults` are set

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • Affects Version/s: 4.0.24, 4.2.14, 4.4.6, 5.0.0-rc0
    • Component/s: None
    • Fully Compatible
    • QE 2021-08-09, QE 2021-08-23, QE 2021-09-06, QE 2021-09-20, QE 2021-10-04, QE 2021-10-18, QE 2021-11-01, QE 2021-11-15, QE 2021-11-29, QE 2021-12-13, QE 2021-12-27, QE 2022-01-10, QE 2022-02-07, QE 2022-01-24
    • 154

      For all MongoDB versions:

      Scenario

      • Multi-shard query with maxTimeMS and allowPartialResults targeting shards A and B
      • Mongos is holding in-memory preliminary results from shard A
      • maxTimeMS is reached before getting results from shard B
      • The mongos throws a maxTimeMS error instead of returning partial results.

      Question

      Should the shard return partial results?

            Assignee:
            steve.tarzia@mongodb.com Steve Tarzia
            Reporter:
            blake.oler@mongodb.com Blake Oler
            Votes:
            0 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated:
              Resolved: