Skip to content

Single banking stage thread for votes #5813

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

apfitzge
Copy link

Problem

  • We have 2 vote threads, one of them only does receiving. This seems to be an artifact of how we used to process transactions, rather than an ideal setup.

Summary of Changes

  • Use a single vote thread to receive from both gossip & non-gossip channels
    • We could combine these channels, but leaving them separate allows us to track gossip vs non-gossip easily.
  • Remove id from metrics, rename vote-only metrics to indicate they are only for the vote-thread

Fixes #

@apfitzge
Copy link
Author

apfitzge commented Apr 14, 2025

There will be a follow-up to this PR to remove all the interior mutability and locks that are in VoteStorage now that it is a single-thread. But that requires rewriting several of the loops.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.0%. Comparing base (c5edcfb) to head (7b7132a).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #5813     +/-   ##
=========================================
- Coverage    83.0%    83.0%   -0.1%     
=========================================
  Files         828      828             
  Lines      375510   375501      -9     
=========================================
- Hits       311857   311822     -35     
- Misses      63653    63679     +26     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

2 participants