Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.1: Disallow --rocksdb-shred-compaction fifo in the validator (backport of #3451) #3464

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Nov 4, 2024

Problem

Fifo compaction in rocksdb (Blockstore) was deprecated in v2.0 (see #1882). Currently, a warning is emitted but use of fifo is still permitted.

Summary of Changes

This change actually makes fifo an invalid option for --rocksdb-shred-compaction, leaving level as the only valid option.

The actual fifo code that is plumbed down several layers will be removed in a subsequent PR

Testing

Started a validator real quick and ensured that things errored out with --rocksdb-shred-compaction fifo and that --rocksdb-shred-compaction level OR not specifying that flag at all proceeded without issue


This is an automatic backport of pull request #3451 done by Mergify.

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)
@mergify mergify bot requested a review from a team as a code owner November 4, 2024 18:12
@mergify mergify bot assigned steviez Nov 4, 2024
@steviez
Copy link

steviez commented Nov 4, 2024

I would like to BP this PR - I probably should have landed this PR prior to v2.1 getting cut, but the intention was always to remove this as an option in v2.1 as noted in the v2.0 section of the changelog:
https://github.com/anza-xyz/agave/blob/master/CHANGELOG.md#200

Copy link

@bw-solana bw-solana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@steviez steviez merged commit dd1a22f into v2.1 Nov 5, 2024
39 checks passed
@steviez steviez deleted the mergify/bp/v2.1/pr-3451 branch November 5, 2024 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants