You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When files are marked for compaction (i.e with FileMetadata.MarkedForCompaction = true, something that RocksDB often does), and when no other higher-priority score based compaction exists, we end up generating a compaction out of the picked file(s).
The portion of code in compactionPickerByScore.pickAuto that does this is currently untested by unit tests. This can be an issue, as it could let bugs in that logic go ignored until they get caught by higher level tests or roachtests in Cockroach. An example of such a recent bug would be cockroachdb/cockroach#53121 .
Changing testdata/compaction_picker_target_level to allow for specifying sstables marked for compactions should be a fairly straightforward way to test this logic.
The text was updated successfully, but these errors were encountered:
This change adds a test to test compaction picking logic where
MarkedForCompaction = true. Previously, this boolean was completely
untested, resulting in panics when Pebble was used on a previously-rocksdb
store directory, as RocksDB often set that boolean to true in the manifest.
Fixescockroachdb#868.
This change adds a test to test compaction picking logic where
MarkedForCompaction = true. Previously, this boolean was completely
untested, resulting in panics when Pebble was used on a previously-rocksdb
store directory, as RocksDB often set that boolean to true in the manifest.
Fixes#868.
When files are marked for compaction (i.e with FileMetadata.MarkedForCompaction = true, something that RocksDB often does), and when no other higher-priority score based compaction exists, we end up generating a compaction out of the picked file(s).
The portion of code in
compactionPickerByScore.pickAuto
that does this is currently untested by unit tests. This can be an issue, as it could let bugs in that logic go ignored until they get caught by higher level tests or roachtests in Cockroach. An example of such a recent bug would be cockroachdb/cockroach#53121 .Changing
testdata/compaction_picker_target_level
to allow for specifying sstables marked for compactions should be a fairly straightforward way to test this logic.The text was updated successfully, but these errors were encountered: