[SERVER-32453] WTKVEngine::getAllIdents mishandles cursor->next return code. Created: 23/Dec/17  Updated: 30/Oct/23  Resolved: 29/Jan/18

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 3.0.15, 3.2.18, 3.4.10, 3.6.0
Fix Version/s: 3.4.15, 3.6.4, 3.7.2

Type: Bug Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Xiangyu Yao (Inactive)
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
is related to WT-3829 WiredTiger metadata can be logically ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.6, v3.4
Sprint: Storage 2018-01-29
Participants:
Linked BF Score: 0

 Description   

A call to WT's getAllidents loops through a metadata cursor. The code assumes any non-zero return code is a successful cursor exhaustion, but there can be cases (e.g: presumably data corruption) where WiredTiger returns an error. At the very least, this error flags the current WT transaction into an error state which makes any later commit to fail for mysterious reasons.



 Comments   
Comment by Githook User [ 22/Mar/18 ]

Author:

{'email': 'xiangyu.yao@mongodb.com', 'name': 'Xiangyu Yao', 'username': 'xy24'}

Message: SERVER-32453 Handle cursor->next return code in WTKVEngine::getAllIdents

(cherry picked from commit d9295a2e55339b19430390371902325a5837f50e)
Branch: v3.4
https://github.com/mongodb/mongo/commit/506ec8c26c0612f557654062b74552f978b2569e

Comment by Githook User [ 15/Mar/18 ]

Author:

{'email': 'xiangyu.yao@mongodb.com', 'name': 'Xiangyu Yao', 'username': 'xy24'}

Message: SERVER-32453 Handle cursor->next return code in WTKVEngine::getAllIdents

(cherry picked from commit d9295a2e55339b19430390371902325a5837f50e)
Branch: v3.6
https://github.com/mongodb/mongo/commit/144028e0da79ca02549176c0846aec7c648f2f11

Comment by Githook User [ 29/Jan/18 ]

Author:

{'email': 'xiangyu.yao@mongodb.com', 'name': 'Xiangyu Yao', 'username': 'xy24'}

Message: SERVER-32453 Handle cursor->next return code in WTKVEngine::getAllIdents
Branch: master
https://github.com/mongodb/mongo/commit/d9295a2e55339b19430390371902325a5837f50e

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