[SERVER-65376] sbe_cmd.js returns error "undefined slot accessor:6" Created: 08/Apr/22  Updated: 29/Oct/23  Resolved: 11/Apr/22

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

Type: Bug Priority: Major - P3
Reporter: Anton Korshunov Assignee: Denis Grebennicov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-65699 Delete the test-only "sbe" command Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: QO 2022-04-18
Participants:

 Description   

`SBECommand` doesn't support auto-parameterised queries, as while parsing an existing sbe plan (provided as part of the cmd), it doesn't preserve the previous slot ids, provided in the sbe plan, therefore making auto-parameterisation error-prone.

The proposed fix would be to run only non auto-parameterised queries as part of this test.



 Comments   
Comment by David Storch [ 15/Apr/22 ]

anton.korshunov@mongodb.com I filed SERVER-65699 suggesting that we delete the "sbe" command. I'll be curious to find out what the rest of the team thinks of this suggestion.

Comment by David Storch [ 12/Apr/22 ]

anton.korshunov@mongodb.com I feel like we have left the "sbe" command in a bad state. If we're going to have the sbe command at all, then it should actually work for simple predicates such as comparisons which we usually auto-parameterize. I think we should do something about this, but I'm open to several alternatives:

  1.  Kill off the sbe command.
  2. Make it so that the sbe command does not try to auto-parameterize the input query.
  3. Make the sbe command actually work with auto-parameterization. I would only do this if it's very straightforward.

In a meeting recently you expressed support for option #1, is that correct? I'm fine with option 1. Who do we need to convince to make this change, just Martin?

Comment by Githook User [ 11/Apr/22 ]

Author:

{'name': 'Denis Grebennicov', 'email': 'denis.grebennicov@mongodb.com', 'username': 'denis631'}

Message: SERVER-65376 sbe_cmd.js returns error "undefined slot accessor:6"
Branch: master
https://github.com/mongodb/mongo/commit/9eb34cdd11f6a63ef30e9d6096daa0d938b33d1b

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