[SERVER-64576] Update query stats test cases for the SBE $lookup in lookup_query_stats.js Created: 16/Mar/22  Updated: 29/Oct/23  Resolved: 07/Apr/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Yoon Soo Kim Assignee: Yoon Soo Kim
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-64575 Do not run lookup_query_stats.js for ... Closed
Backwards Compatibility: Fully Compatible
Sprint: QE 2022-04-04, QE 2022-04-18
Participants:

 Description   

lookup_query_stats.js fails when featureFlagSBELookupPushdown is turned on.

error messages:

buildscripts/resmoke.py run --suites=aggregation --mongodSetParameters="{featureFlagSBELookupPushdown: true}" jstests/aggregation/sources/lookup/lookup_query_stats.js[js_test:lookup_query_stats] assert: [0] != [1] are not equal : [ ]
[js_test:lookup_query_stats] doassert@src/mongo/shell/assert.js:20:14
[js_test:lookup_query_stats] assert.eq@src/mongo/shell/assert.js:179:17
[js_test:lookup_query_stats] checkExplainOutputForVerLevel@jstests/aggregation/sources/lookup/lookup_query_stats.js:90:12
[js_test:lookup_query_stats] checkExplainOutputForAllVerbosityLevels@jstests/aggregation/sources/lookup/lookup_query_stats.js:113:34
[js_test:lookup_query_stats] testQueryExecutorStatsWithCollectionScan@jstests/aggregation/sources/lookup/lookup_query_stats.js:150:44
[js_test:lookup_query_stats] @jstests/aggregation/sources/lookup/lookup_query_stats.js:197:1
[js_test:lookup_query_stats] @jstests/aggregation/sources/lookup/lookup_query_stats.js:199:2

 

 Currently this test file is disabled. So, need to comment out this part to repro the issue.

// TODO SERVER-64576 Update test cases for the SBE $lookup feature and remove 'if' block.
if (checkSBEEnabled(db, ["featureFlagSBELookupPushdown"])) {
    jsTest.log("Skipping test because SBE and SBE $lookup features are both enabled.");
    return;
}



 Comments   
Comment by Githook User [ 07/Apr/22 ]

Author:

{'name': 'Yoonsoo Kim', 'email': 'yoonsoo.kim@mongodb.com', 'username': 'yun-soo'}

Message: SERVER-64576 Update lookup query stats tests for the SBE lookup
Branch: master
https://github.com/mongodb/mongo/commit/7038719c685f2d858f69717e1939e521e6f2d9c0

Comment by Ethan Zhang (Inactive) [ 29/Mar/22 ]

yoonsoo.kim Can you clarify what query stats did you mean? Maybe update the ticket with more description?

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