$searchMeta fails on unsharded collection in sharded cluster when there are no search results

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.4.10, 5.0.4
    • Affects Version/s: 5.0.3, 4.4.9
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • v4.4
    • QO 2021-10-18
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      It looks to be a problem specifically within the $unionWith that $searchMeta expands to. I can now reproduce and have what I think is a fix. I believe SERVER-59097 will fix this on master and I believe the plan is to backport that to the 5.0 branch.

            Assignee:
            Charlie Swanson
            Reporter:
            Charlie Swanson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: