Investigate discrepancy between ShardLocal and ShardRemote aggregations

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2025-02-03
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The ShardLocal aggregations code ends up calling RSLocalClient. This code ends up overriding the readConcern given to the command.

      The readConcern given as a result would crash the server if snapshot readConcern is used since the override would swap afterClusterTime with afterOpTime. When processing the request, the server would also add a atClusterTime since it uses snapshot readConcern. This will cause this invariant to get hit since both arguments will be set.

              Assignee:
              Jordi Olivares Provencio
              Reporter:
              Jordi Olivares Provencio
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: