Investigate $limit vs $extensionLimit correctness in sharded collections

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Both stages follow different execution paths and can return different results non-deterministically in a sharded collections topology. Investigate whether this discrepancy in results can be fixed.

      If so, update the MatchTopN extension to use $extensionLimit (and its relevant tests) and the extension_limit.js test to assert on the results instead of just the result set lengths for sharded collections.

            Assignee:
            Unassigned
            Reporter:
            Adithi Raghavan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: