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.
- is related to
WT-3829 WiredTiger metadata can be logically inconsistent.