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