Skip to content

bugfix: vote worker reached_end_of_slot set by is_complete#8474

Merged
apfitzge merged 1 commit intoanza-xyz:masterfrom
apfitzge:fix_bad_vote_worker_has_reached_end_of_slot
Oct 14, 2025
Merged

bugfix: vote worker reached_end_of_slot set by is_complete#8474
apfitzge merged 1 commit intoanza-xyz:masterfrom
apfitzge:fix_bad_vote_worker_has_reached_end_of_slot

Conversation

@apfitzge
Copy link
Copy Markdown

Problem

#7351 comment

Summary of Changes

  • use is_complete() instead of !is_complete
  • separate into function so we can test easily

Fixes #

@apfitzge apfitzge changed the title reached_end_of_slot set by is_complete bugfix: vote worker reached_end_of_slot set by is_complete Oct 14, 2025
@apfitzge apfitzge mentioned this pull request Oct 14, 2025
@apfitzge apfitzge added the v3.0 label Oct 14, 2025
@mergify
Copy link
Copy Markdown

mergify Bot commented Oct 14, 2025

Backports to the beta branch are to be avoided unless absolutely necessary for fixing bugs, security issues, and perf regressions. Changes intended for backport should be structured such that a minimum effective diff can be committed separately from any refactoring, plumbing, cleanup, etc that are not strictly necessary to achieve the goal. Any of the latter should go only into master and ride the normal stabilization schedule. Exceptions include CI/metrics changes, CLI improvements and documentation updates on a case by case basis.

@apfitzge
Copy link
Copy Markdown
Author

#7351 landed in 3.0, so adding backport label. Thanks to @diman-io for pointing this out.
Would have caused vote worker to do drain loops really inefficiently for packing votes.

@apfitzge apfitzge added the bug Something isn't working label Oct 14, 2025
Comment thread core/src/banking_stage/vote_worker.rs
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.2%. Comparing base (004ed58) to head (14e703f).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #8474     +/-   ##
=========================================
- Coverage    83.2%    83.2%   -0.1%     
=========================================
  Files         840      840             
  Lines      367918   367938     +20     
=========================================
- Hits       306145   306133     -12     
- Misses      61773    61805     +32     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown

@tao-stones tao-stones left a comment

Choose a reason for hiding this comment

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

lgtm

@apfitzge apfitzge added this pull request to the merge queue Oct 14, 2025
Merged via the queue into anza-xyz:master with commit 904be9f Oct 14, 2025
45 checks passed
@apfitzge apfitzge deleted the fix_bad_vote_worker_has_reached_end_of_slot branch October 14, 2025 19:24
mergify Bot pushed a commit that referenced this pull request Oct 14, 2025
reached_end_of_slot set by is_complete

(cherry picked from commit 904be9f)

# Conflicts:
#	core/src/banking_stage/vote_worker.rs
apfitzge added a commit that referenced this pull request Oct 14, 2025
…kport of #8474) (#8481)

* bugfix: vote worker reached_end_of_slot set by is_complete (#8474)

reached_end_of_slot set by is_complete

(cherry picked from commit 904be9f)

# Conflicts:
#	core/src/banking_stage/vote_worker.rs

* resolve conflicts

---------

Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>
Japif pushed a commit to helius-labs/agave that referenced this pull request Feb 4, 2026
…kport of anza-xyz#8474) (anza-xyz#8481)

* bugfix: vote worker reached_end_of_slot set by is_complete (anza-xyz#8474)

reached_end_of_slot set by is_complete

(cherry picked from commit 904be9f)

# Conflicts:
#	core/src/banking_stage/vote_worker.rs

* resolve conflicts

---------

Co-authored-by: Andrew Fitzgerald <apfitzge@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants