Skip to content
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

op-batcher: bound duration spent in state publishing loop #12909

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

roberto-bayardo
Copy link
Collaborator

@roberto-bayardo roberto-bayardo commented Nov 13, 2024

Description

publishStateToL1 can block for a very long time if there is a large state backlog, preventing timely update of backlog metrics and the triggering of DA throttling. This PR lets the caller bound the time spent in the loop rather than allowing it to proceed until EOF is triggered.

@roberto-bayardo roberto-bayardo force-pushed the bound-state-publishing-duration branch from 4e579ce to 02f4a8a Compare November 13, 2024 05:23
@roberto-bayardo roberto-bayardo marked this pull request as ready for review November 13, 2024 14:07
@roberto-bayardo roberto-bayardo requested review from a team as code owners November 13, 2024 14:07
Copy link
Member

@sebastianst sebastianst left a comment

Choose a reason for hiding this comment

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

This LGTM as a quick fix, but we really ought to separate the loading and publishing routines...

@sebastianst sebastianst added this pull request to the merge queue Nov 15, 2024
Merged via the queue into develop with commit 4a677e8 Nov 15, 2024
49 checks passed
@sebastianst sebastianst deleted the bound-state-publishing-duration branch November 15, 2024 08:36
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