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

Explain is broken with search on sharded clusters.

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Query Integration
    • 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"

    Description

      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().

      Attachments

        Activity

          People

            backlog-query-integration Backlog - Query Integration
            santiago.roche@mongodb.com Santiago Roche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: