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.0: Check poh_recorder.start_slot() hasn't been dumped previously before checking it in ProgressMap. (backport of #2676) #2691

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Aug 22, 2024

Problem

It's possible that poh_recorder.start_slot() has been dumped because of duplicate proof, in that case we would currently panic inside ProgressMap::get_propagated_stats_must_exist()

Summary of Changes

Check that start_slot still exists in ProgressMap before proceeding.


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

…checking it in ProgressMap. (#2676)

* Check poh_recorder.start_slot() hasn't been dumped previously before checking it in progress_map.

* Add more comments and put in checks for maybe_start_leader.

* Update core/src/replay_stage.rs

Co-authored-by: Ashwin Sekar <ashwin@solana.com>

* Use a slot which I am not leader to avoid dumping my own slot panic.

* Address reviewer comments.

* Address reviewer comments.

---------

Co-authored-by: Ashwin Sekar <ashwin@solana.com>
(cherry picked from commit 053faa6)
@mergify mergify bot requested a review from a team as a code owner August 22, 2024 00:13
@wen-coding wen-coding merged commit a210e0c into v2.0 Aug 22, 2024
38 checks passed
@wen-coding wen-coding deleted the mergify/bp/v2.0/pr-2676 branch August 22, 2024 16:25
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.

None yet

3 participants