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

[BF-28626] Update sharding/query/views.js explain checks for SBE clustered collection support

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: 7.1.0-rc0
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • 153

      Fix for BF-28626.

      jstests/sharding/query/views.js needs some of its explain output checks updated now that SBE supports clustered collection (CC) scans (from SERVER-74521 delivery on 2023-05-01). This test runs on non-clustered collections unless the flag --suite=sharding_clustered_collections is supplied, in which case it runs on clustered collections. The test supports the execution engine being either Classic or SBE. In one test case, SBE optimizes away a pipeline, but Classic does not. Prior to SERVER-74521 delivery, even when SBE was enabled, the CC case was still delegated to Classic, because SBE did not support CCs, so the behavior of the four conditions (Classic/SBE x non-CC/CC) was:

      1. Classic non-CC – pipeline present in the explain output
      2. Classic CC – pipeline present
      3. SBE non-CC – pipeline optimized away
      4. SBE CC that really still used Classic – pipeline present

      Now that SBE supports CC, case 4 has changed to:

      4. SBE CC – pipeline optimized away

      The test needs to be updated to expect the SBE behavior now when it is run on the SBE x CC condition (#4).

            Assignee:
            kevin.cherkauer@mongodb.com Kevin Cherkauer
            Reporter:
            kevin.cherkauer@mongodb.com Kevin Cherkauer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: