Skip to content

Conversation

patrick-ogrady
Copy link
Contributor

@patrick-ogrady patrick-ogrady commented Aug 19, 2025

Related: #1417

Instead of waiting the full rebroadcast demo for verified but unconfirmed items, immediately mark for rebroadcast.

@patrick-ogrady patrick-ogrady changed the title [consensus/aggregation] Improve Recovery [consensus/aggregation] Improve Recovery Performance Aug 19, 2025
// If the digest is verified but not yet confirmed, set a rebroadcast deadline
self.set_rebroadcast_deadline(index);
// If we've already generated an ack and it isn't yet confirmed, mark for immediate rebroadcast
self.rebroadcast_deadlines
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In practice, this dramatically improved recovery performance during cluster shutdown.

}

// Sets the rebroadcast deadline for the given `index`.
fn set_rebroadcast_deadline(&mut self, index: Index) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now that we rebroadcast at various deadlines, I found it clearer to remove this helper.

@patrick-ogrady patrick-ogrady merged commit 0a49406 into main Aug 19, 2025
36 checks passed
@patrick-ogrady patrick-ogrady deleted the debug-aggregation branch August 19, 2025 20:49
Copy link

codecov bot commented Aug 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.74%. Comparing base (6226ac0) to head (bf10fd1).
⚠️ Report is 2 commits behind head on main.

@@           Coverage Diff           @@
##             main    #1436   +/-   ##
=======================================
  Coverage   91.74%   91.74%           
=======================================
  Files         276      276           
  Lines       69723    69723           
=======================================
  Hits        63965    63965           
  Misses       5758     5758           
Files with missing lines Coverage Δ
consensus/src/aggregation/engine.rs 83.07% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6226ac0...bf10fd1. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant