[SERVER-84511] Explain is broken with search on sharded clusters. Created: 02/Jan/24  Updated: 04/Jan/24

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Santiago Roche Assignee: Backlog - Query Integration
Resolution: Unresolved Votes: 0
Labels: explain, qi-search, search
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Integration
Operating System: ALL
Steps To Reproduce:

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"

Participants:

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


Generated at Thu Feb 08 06:55:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.