[SERVER-76795] [BF-28626] Update sharding/query/views.js explain checks for SBE clustered collection support Created: 03/May/23  Updated: 29/Oct/23  Resolved: 04/May/23

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

Type: Bug Priority: Major - P3
Reporter: Kevin Cherkauer Assignee: Kevin Cherkauer
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 153

 Description   

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).



 Comments   
Comment by Kevin Cherkauer [ 04/May/23 ]

Test fix only. No bug in server.

Comment by Githook User [ 04/May/23 ]

Author:

{'name': 'Kevin Cherkauer', 'email': 'kevin.cherkauer@mongodb.com', 'username': 'kevin-cherkauer'}

Message: SERVER-76795 Update views.js SBE clustered collection explain checks
Branch: master
https://github.com/mongodb/mongo/commit/98a7aa94f7fb69414ae3560544df0c0c2258ca88

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