forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
42405: storage/engine: fix Pebble bloom filters r=petermattis a=petermattis The Pebble `Comparer.Split` function was returning a different key prefix than the prefix extractor we are using with RocksDB. The Pebble version was omitting the trailing NUL byte the RocksDB one was including it. This meant that Pebble generated bloom filters were incompatible with RocksDB generated ones. This fixes `TestRemoveDeadReplicas` which opens a store using Pebble, repairs the store using RocksDB, then re-opens the store using Pebble. This final step was failing to find the `storeIdent` key to the bloom filter problem. Add support for using Pebble in `cli.OpenExistingStore`, though note that TODO that this currently causes a test failure. Fixes cockroachdb#42351 Release note: None Co-authored-by: Peter Mattis <[email protected]>
- Loading branch information
Showing
2 changed files
with
49 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters