Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: don't panic on Iterator.Close
Don't panic if Iterator.Close returns a non-nil error. Iteration errors should already be surfaced through (*pebble.Iterator).Error and (storage.EngineIterator).Valid. Panicking may crash the node for retriable, ephemeral I/O errors, especially when reading from sstables over the network. In a follow up, we should make sure we're still appropriately panicking for non-retriable errors. Fix cockroachdb#84396. Release note (bug fix): fix bug where an ephemeral I/O error could crash a node.
- Loading branch information