[SERVER-49385] SBE should fail cleanly if needed index is dropped during execution of SBE query Created: 08/Jul/20  Updated: 29/Oct/23  Resolved: 08/Mar/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Improvement Priority: Major - P3
Reporter: Justin Seyster Assignee: David Storch
Resolution: Fixed Votes: 0
Labels: qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-54318 [SBE] Invariant in WT while opening a... Closed
is duplicated by SERVER-54497 [SBE] Error is not returned as expect... Closed
Related
related to SERVER-51629 Support lock-free reads in SBE Closed
is related to SERVER-50710 Lock acquired in FindCmd run() method... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query Execution 2021-02-22, Query Execution 2021-03-08, Query Execution 2021-03-22
Participants:
Linked BF Score: 140

 Description   

The "prepare" phase of the IndexScanStage should take the collection lock and store a weak reference to the IndexCatalogEntry, so that subsequent open() and getNext() calls can verify they are using the same index as was used to initially open the IndexScanStage (i.e., the index was not destroyed and then re-created with the same name).



 Comments   
Comment by Githook User [ 08/Mar/21 ]

Author:

{'name': 'David Storch', 'email': 'david.storch@mongodb.com', 'username': 'dstorch'}

Message: SERVER-49385 Make SBE fail cleanly when required index is dropped while yielded
Branch: master
https://github.com/mongodb/mongo/commit/aff08f0357b29a7ab03bd7d548c8c677ad0432c7

Generated at Thu Feb 08 05:19:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.