Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
61456: kvserver: deflake TestBackpressureNotAppliedWhenReducingRangeSize r=ajwerner a=tbg Fixes cockroachdb#61453. One question I have is why `(*storage.Pebble).Close` swallows the error from closing the underlying pebble instance, i.e. why don't we add this diff: ```diff diff --git a/pkg/storage/pebble.go b/pkg/storage/pebble.go index a85e0e1d35..88ebc20025 100644 --- a/pkg/storage/pebble.go +++ b/pkg/storage/pebble.go @@ -635,7 +635,9 @@ func (p *Pebble) Close() { return } p.closed = true - _ = p.db.Close() + if err := p.db.Close(); err != nil { + panic(err) + } } // Closed implements the Engine interface. ``` From my cursory reading of the pebble codebase, leaked iterators are one source of errors here. Release justification: non-production code changes Release note: None Co-authored-by: Tobias Grieger <[email protected]>
- Loading branch information