Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db: don't validate version edits during a panic
At the end of every flush and compaction, we sanity-check the version edit and associated file metadata. If during the defer, we're handling an existing panic, don't validate the version edit. In 22.2.0, Pebble would panic if a sstable.Reader found that a readahead file no longer existed. This was new behavior relative to previous releases, which would `os.Exit` directly. More recent releases (22.2.x) avoid treating these no-longer-existant files as fatal at all. Informs cockroachdb/cockroach#93851.
- Loading branch information