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

increase minimum shred filtering distance #3430

Merged
merged 1 commit into from
Nov 3, 2024

Conversation

bw-solana
Copy link

@bw-solana bw-solana commented Nov 1, 2024

Problem

See #3295 for additional context.

Local cluster tests with multiple nodes that use very short (e.g. minimum/32 slot) epochs are subject to filtering out shreds that they actually need. This was observed as one of the causes of flakiness with test_wait_for_max_stake.

Summary of Changes

Add a floor to how low we can set the distance into the future at which we'll start filtering out shreds.

The current floor is effectively 64 given the minimum slots per epoch value we allow. With the chosen value of 500, this change will increase this ~an order of magnitude. It will effectively be a nop for any cluster running with >250 slots per epoch (e.g. mainnet/testnet/devnet)

@bw-solana bw-solana marked this pull request as ready for review November 1, 2024 22:33
Copy link

@AshwinSekar AshwinSekar left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@steviez steviez left a comment

Choose a reason for hiding this comment

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

Seems reasonable

@bw-solana bw-solana merged commit 2aa93e9 into anza-xyz:master Nov 3, 2024
40 checks passed
@bw-solana bw-solana deleted the shred_filtering branch November 3, 2024 15:59
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