Skip to content

Deduplicate getVerifyingState calls in data column verification using singleflight.#16550

Open
nalepae wants to merge 3 commits intodevelopfrom
replaying-state
Open

Deduplicate getVerifyingState calls in data column verification using singleflight.#16550
nalepae wants to merge 3 commits intodevelopfrom
replaying-state

Conversation

@nalepae
Copy link
Contributor

@nalepae nalepae commented Mar 17, 2026

What type of PR is this?
(Partial) Bug fix

What does this PR do? Why is it needed?
When receiving multiple data column sidecars via gossip, it is possible that a lot of state replaying run concurrently at the same time. This consumes a lot of CPU and memory for nothing.
This PR prevents multiple concurrent state replaying targeting the same state.

Tip

Please read commit by commit, with the "hide whitespace" feature activated
image

Acknowledgements

  • I have read CONTRIBUTING.md.
  • I have included a uniquely named changelog fragment file.
  • I have added a description with sufficient context for reviewers to understand this PR.
  • I have tested that my changes work as expected and I added a testing plan to the PR description (if applicable).

@nalepae nalepae changed the title Replaying state Deduplicate getVerifyingState calls in data column verification using singleflight. Mar 17, 2026
@nalepae nalepae force-pushed the replaying-state branch 2 times, most recently from cb8ab14 to 76d0b57 Compare March 17, 2026 21:52
@nalepae nalepae changed the base branch from develop to state-by-root-no-copy March 17, 2026 21:53
@nalepae nalepae marked this pull request as draft March 17, 2026 21:53
Base automatically changed from state-by-root-no-copy to develop March 18, 2026 22:16
@nalepae nalepae marked this pull request as ready for review March 18, 2026 23:20
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