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

On 6.0 and 7.0, $unionWith $search queries error for unsharded collections on a sharded cluster.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.12, 6.0.17
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Integration
    • Fully Compatible
    • ALL
    • v6.0

      For an unsharded search collection, when $unionWith is run with $search as the first stage of the subpipeline, we fail a tassert that we were only expecting one cursor.

      This is because we run PSS as we are on a sharded cluster (this seems to be the case on 6.0 and potentially 7.0) and we then later include the protocolVersion when querying mongot, causing it to return two cursors. We then fail a tassert as we were only expecting one cursor.

            Assignee:
            erin.zhu@mongodb.com Erin Zhu
            Reporter:
            erin.zhu@mongodb.com Erin Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: