Skip to content

Commit dd1a22f

Browse files
v2.1: Disallow --rocksdb-shred-compaction fifo in the validator (backport of #3451) (#3464)
Disallow --rocksdb-shred-compaction fifo in the validator (#3451) 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 (cherry picked from commit fddc554) Co-authored-by: steviez <[email protected]>
1 parent 3ce3be0 commit dd1a22f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Release channels have their own copy of this changelog:
2424
* removed the unreleased `redelegate` instruction processor and CLI commands (#2213)
2525
* Banks-client:
2626
* relax functions to use `&self` instead of `&mut self` (#2591)
27+
* `agave-validator`:
28+
* Remove the deprecated value of `fifo` for `--rocksdb-shred-compaction` (#3451)
2729
* Changes
2830
* SDK:
2931
* removed the `respan` macro. This was marked as "internal use only" and was no longer used internally.

validator/src/cli.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -666,14 +666,12 @@ pub fn app<'a>(version: &'a str, default_args: &'a DefaultArgs) -> App<'a, 'a> {
666666
.long("rocksdb-shred-compaction")
667667
.value_name("ROCKSDB_COMPACTION_STYLE")
668668
.takes_value(true)
669-
.possible_values(&["level", "fifo"])
669+
.possible_values(&["level"])
670670
.default_value(&default_args.rocksdb_shred_compaction)
671671
.help(
672672
"Controls how RocksDB compacts shreds. *WARNING*: You will lose your \
673673
Blockstore data when you switch between options. Possible values are: \
674-
'level': stores shreds using RocksDB's default (level) compaction. \
675-
'fifo': stores shreds under RocksDB's FIFO compaction. This option is more \
676-
efficient on disk-write-bytes of the Blockstore.",
674+
'level': stores shreds using RocksDB's default (level) compaction.",
677675
),
678676
)
679677
.arg(

0 commit comments

Comments
 (0)