Skip to content

Commit

Permalink
Disallow --rocksdb-shred-compaction fifo in the validator (#3451)
Browse files Browse the repository at this point in the history
The use of fifo compaction in rocksdb is deprecated (as of v2.0). The
current behavior emits a warning if fifo is set. This change removes
"fifo" as an option, leaving "level" as the only valid value for
--rocksdb-shred-compaction
  • Loading branch information
steviez authored Nov 4, 2024
1 parent eac6d61 commit fddc554
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Release channels have their own copy of this changelog:
* removed the unreleased `redelegate` instruction processor and CLI commands (#2213)
* Banks-client:
* relax functions to use `&self` instead of `&mut self` (#2591)
* `agave-validator`:
* Remove the deprecated value of `fifo` for `--rocksdb-shred-compaction` (#3451)
* Changes
* SDK:
* removed the `respan` macro. This was marked as "internal use only" and was no longer used internally.
Expand Down
6 changes: 2 additions & 4 deletions validator/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -666,14 +666,12 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> {
.long("rocksdb-shred-compaction")
.value_name("ROCKSDB_COMPACTION_STYLE")
.takes_value(true)
.possible_values(&["level", "fifo"])
.possible_values(&["level"])
.default_value(&default_args.rocksdb_shred_compaction)
.help(
"Controls how RocksDB compacts shreds. *WARNING*: You will lose your \
Blockstore data when you switch between options. Possible values are: \
'level': stores shreds using RocksDB's default (level) compaction. \
'fifo': stores shreds under RocksDB's FIFO compaction. This option is more \
efficient on disk-write-bytes of the Blockstore.",
'level': stores shreds using RocksDB's default (level) compaction.",
),
)
.arg(
Expand Down

0 comments on commit fddc554

Please sign in to comment.