Skip to content

Scheduler: slot-gated Retry#5913

Closed
apfitzge wants to merge 6 commits intoanza-xyz:masterfrom
apfitzge:slot_gated_retry
Closed

Scheduler: slot-gated Retry#5913
apfitzge wants to merge 6 commits intoanza-xyz:masterfrom
apfitzge:slot_gated_retry

Conversation

@apfitzge
Copy link
Copy Markdown

Problem

Summary of Changes

  • track most recent slot attempted processing
  • wait at least until next slot to retry if reason is CU limits
    • immediate retry for locking failures or invalid bank (slot ended)

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 21, 2025

Codecov Report

❌ Patch coverage is 93.01075% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.9%. Comparing base (86b229b) to head (f8fbab4).
⚠️ Report is 3592 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##           master    #5913    +/-   ##
========================================
  Coverage    82.9%    82.9%            
========================================
  Files         830      830            
  Lines      376347   376500   +153     
========================================
+ Hits       312282   312469   +187     
+ Misses      64065    64031    -34     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@apfitzge apfitzge marked this pull request as ready for review April 21, 2025 20:27
Copy link
Copy Markdown

@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.

Looks pretty good to me. A few nits

Comment thread core/src/banking_stage/vote_worker.rs
pub num_unschedulable_conflicts: usize,
/// Number of transactions that were skipped due to thread capacity.
pub num_unschedulable_threads: usize,
/// Number of transactions that were skipped due too recently attempted.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

to*

})
.unwrap();

// Transaction should NOT be rescheduled
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

isn't this only true for the !immediate_retry case?

self.sum_unschedulable_threads,
i64
),
("num_skipped_retry", self.sum_skipped_retry, i64),
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

might be nice to align names. Something like num_unschedulable_skip_retry

@apfitzge
Copy link
Copy Markdown
Author

closed in favor of #6864

@apfitzge apfitzge closed this Jul 14, 2025
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