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

Aggregation does not detect dependency on $text score metadata when lookup requires merging shard

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Optimization
    • Fully Compatible
    • ALL
    • Hide

      Apply the attached patch and run the following test:

      /buildscripts/resmoke.py run --storageEngine=wiredTiger --storageEngineCacheSizeGB=.50 --log=file --suite=aggregation_mongos_passthrough jstests/aggregation/sources/lookup/lookup_contains_text.js
      
      Show
      Apply the attached patch and run the following test: /buildscripts/resmoke.py run --storageEngine=wiredTiger --storageEngineCacheSizeGB=.50 --log=file --suite=aggregation_mongos_passthrough jstests/aggregation/sources/lookup/lookup_contains_text.js
    • QO 2024-02-05

      This test case fails when the outer collection is sharded but the inner collection is unsharded (in this situation the pipeline is split and it requires a merging shard). The aggregation is failing to detect the dependency on the $text score metadata and executes it without error, when an error was expected. The result is then missing the 'score' field.

            Assignee:
            alya.berciu@mongodb.com Alya Berciu
            Reporter:
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: