[SERVER-31547] Consider all error codes on WT_CURSOR advancement before examining contents. Created: 13/Oct/17  Updated: 30/Oct/23  Resolved: 17/Oct/17

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 3.6.0-rc1

Type: Bug Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Daniel Gottlieb (Inactive)
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: Storage 2017-10-23
Participants:
Linked BF Score: 0

 Description   

One example where get_key (within hasWrongPrefix) is called before checking errors codes that may not be WT_NOTFOUND:

https://github.com/mongodb/mongo/blob/ba0ee77c61c39b077d0975b7487099c5985c7b18/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp#L1716-L1720



 Comments   
Comment by Githook User [ 17/Oct/17 ]

Author:

{'email': 'daniel.gottlieb@mongodb.com', 'name': 'Daniel Gottlieb', 'username': 'dgottlieb'}

Message: SERVER-31547: Check all WT error codes before reading cursors.
Branch: master
https://github.com/mongodb/mongo/commit/ebd980fb0b0848092506106acbd77ca717795c3f

Generated at Thu Feb 08 04:27:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.