[SERVER-61173] EFT index cursor save() implementation assumes the cursor is not already saved Created: 01/Nov/21  Updated: 29/Oct/23  Resolved: 12/Nov/21

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

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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2021-11-15
Participants:
Linked BF Score: 22

 Description   

The saveState() implementation in ephemeral_for_test_sorted_impl.cpp currently relies on the assumption that it is already in a saved state. This can lead to invariant failures if restoring the state of a PlanStage tree is unsuccessful and the tree has to be re-saved() and re-restored().



 Comments   
Comment by Githook User [ 11/Nov/21 ]

Author:

{'name': 'Ian Boros', 'email': 'ian.boros@mongodb.com', 'username': 'borosaurus'}

Message: SERVER-61173 Make EFT cursor saveState() handle case where already saved
Branch: master
https://github.com/mongodb/mongo/commit/b3009a98bf26944681c7862da38d563eec306091

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