Closed ltamasi closed 2 weeks ago
This pull request was exported from Phabricator. Differential Revision: D65689225
This pull request was exported from Phabricator. Differential Revision: D65689225
This pull request has been merged in facebook/rocksdb@a6ee297ac94e7237879588b52356033ec2dd0af7.
Summary: The
PrepareValue()
call on an iterator can fail, for example due to our stress tests' read fault injection. Such a failure invalidates the iterator, which makes it illegal to call methods likekey()
on it and leads to assertion violations. The patch fixes this by saving the key before callingPrepareValue()
, so we can still print it for debugging purposes in case the call fails.Differential Revision: D65689225