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

Update query stats test cases for the SBE $lookup in lookup_query_stats.js

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • QE 2022-04-04, QE 2022-04-18

      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;
      }

            Assignee:
            yoonsoo.kim@mongodb.com Yoon Soo Kim (Inactive)
            Reporter:
            yoonsoo.kim@mongodb.com Yoon Soo Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: