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

[Execution] Not broadcast sealed ER #248

Merged
merged 1 commit into from
Dec 15, 2020
Merged

Conversation

zhangchiqing
Copy link
Member

@zhangchiqing zhangchiqing commented Dec 15, 2020

Looking at the network metrics, it seems the execution halt problem is not because of missing collection, the root cause is that the execution node is still broadcasting those old results, which causes the verification node to respond back with a chunk data request. And the network queue quickly filled up by these requests, and grew to a point that no more collection can be forwarded to the ingestion engine, and case the execution to halt.

image (5)
image (6)
image (7)

This PR changes to not broadcast result for sealed blocks, since the block has already been sealed, there is no value in broadcasting it.

@zhangchiqing zhangchiqing requested review from Kay-Zee and ramtinms and removed request for psiemens December 15, 2020 18:59
Comment on lines +561 to +562
// if the receipt is for a sealed block, then no need to broadcast it.
lastSealed, err := e.state.Sealed().Head()
Copy link
Member

Choose a reason for hiding this comment

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

does this consider finalization for the block that includes the seal?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, sealed means it's sealed AND finalized.

We update Sealed in Finalize method of the protocol state

@zhangchiqing zhangchiqing merged commit 94c121c into v0.13 Dec 15, 2020
@zhangchiqing zhangchiqing deleted the leo/not-broadcast-sealed-er branch December 15, 2020 21:39
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.

None yet

2 participants