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

exhaust.js fails with 'featureFlagSbeFull' or in a sharded environment

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • Fully Compatible
    • QE 2024-06-10, QE 2024-06-24, QE 2024-07-08

      This test (and subsequent ones) in exhaust.js fail when the following are true: 

      • featureFlagSbeFull is set to true OR it is a sharded environment
      • This specific test is run prior
      • numDocs is a certain value, observed with 2601, 3001, …

      The test fails with uncaught exception: Error: [101] != [0] are not equal (or whatever the current findCommandBatchSize is != 0). 

      Command to reproduce:

      buildscripts/resmoke.py run jstests/core/exhaust.js --suites=core --mongodSetParameters='{featureFlagSbeFull: true}'

      At first we suspected it was a plan cache issue but the test fails even with internalQueryDisablePlanCache: true. The failing test does in fact accumulate a first batch, but has the cursor result: (from adding logging for cmdResult here)

      {    "cursor" : {
              "nextBatch" : [ ],
              "id" : NumberLong(0),
              "ns" : "test.exhaustColl"    },
          "ok" : 1 } 

      After some investigation, the next direction that it might be fruitful to look into is the difference between PlanExecutorImpl::getNextBatch() (used by the classic engine) and PlanExecutor::getNextBatch() (used by SBE). 

            Assignee:
            adi.agrawal@mongodb.com Adi Agrawal
            Reporter:
            kristina.znam@mongodb.com Kristina Znam
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: