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

    XMLWordPrintable

Details

    • Improvement
    • Status: In Code Review
    • Major - P3
    • Resolution: Unresolved
    • 4.0.24, 4.2.14, 4.4.6, 5.0.0-rc0
    • None
    • None
    • 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

    Description

      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?

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: