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

Explain is broken with search on sharded clusters.

    • Query Integration
    • Fully Compatible
    • ALL
    • Hide

      To reproduce locally, remove the early return in the code snippet in "jstests/with_mongot/search_mocked/shard_limit_test.js" and run:

      ./buildscripts/resmoke.py run -j4 jstests/with_mongot/search_mocked/shard_limit_test.js"
      
      Show
      To reproduce locally, remove the early return in the code snippet in "jstests/with_mongot/search_mocked/shard_limit_test.js" and run: ./buildscripts/resmoke.py run -j4 jstests/with_mongot/search_mocked/shard_limit_test.js"

      The following test: stests/with_mongot/search_mocked/shard_limit_test.js fails as it is unable to find the "stages" field within the explain results for a search query on a sharded cluster.

      In the body of the function :

      function assertLimitAbsorbed(explainRes, query) {...}
      

      We iterate through the explain results to assert specific conditions. Unfortunately this fails because the "stages" field is not found in the results. For the time being, this method returns early to "disable" the test.

      Investigate the failure, and re-enable the test by removing the early return in assertLimitAbsorbed().

            Assignee:
            erin.zhu@mongodb.com Erin Zhu
            Reporter:
            santiago.roche@mongodb.com Santiago Roche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: