Skip to content

Batch forwarding followup #3955

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tnull
Copy link
Contributor

@tnull tnull commented Jul 24, 2025

Just a quick follow-up to #3891, addressing the outstanding comments there.

tnull added 3 commits July 24, 2025 11:42
We limit the tail latency of our batch forwarding delay.
We previously introduced an additional `loop_exit_check` in background
processor. Since all reviewers seemed to be skeptical about its
usefulness, we drop it again here.
@tnull tnull requested a review from TheBlueMatt July 24, 2025 10:02
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Jul 24, 2025

👋 Thanks for assigning @TheBlueMatt as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

.. as requested on the original PR, we combine the two `sleeper` futures
into a single one.
Copy link

codecov bot commented Jul 24, 2025

Codecov Report

Attention: Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.

Project coverage is 88.91%. Comparing base (ff279d6) to head (3c17250).

Files with missing lines Patch % Lines
lightning-background-processor/src/lib.rs 57.14% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3955      +/-   ##
==========================================
+ Coverage   88.74%   88.91%   +0.16%     
==========================================
  Files         172      173       +1     
  Lines      123275   123387     +112     
  Branches   123275   123387     +112     
==========================================
+ Hits       109399   109708     +309     
+ Misses      11495    11218     -277     
- Partials     2381     2461      +80     
Flag Coverage Δ
fuzzing 22.31% <ø> (?)
tests 88.74% <57.14%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Copy link
Collaborator

@TheBlueMatt TheBlueMatt left a comment

Choose a reason for hiding this comment

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

#3891 (comment) really seems trivial to address.

@@ -399,13 +399,6 @@ macro_rules! define_run_body {
last_forwards_processing_call = $get_timer(cur_batch_delay);
}

// Checke whether to exit the loop again, as some time might have passed since we
// checked above.
if $loop_exit_check {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is the wrong one to drop. We should check for exit right before we do the long sleep below, not before we forward and then do the long-sleep.

@ldk-reviews-bot
Copy link

👋 The first review has been submitted!

Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer.

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