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

go/worker/compute/executor: Do not propose batch on epoch transition #5260

Merged
merged 1 commit into from May 22, 2023

Conversation

kostko
Copy link
Member

@kostko kostko commented May 12, 2023

Previously a compute node could propose a new batch just before the epoch transition happened, resulting in computation that will be discarded anyway.

@kostko kostko force-pushed the kostko/feature/exec-proposal-epochtransition branch 2 times, most recently from 3041037 to 414c912 Compare May 12, 2023 11:52
@kostko kostko marked this pull request as ready for review May 19, 2023 08:34
Copy link
Contributor

@peternose peternose left a comment

Choose a reason for hiding this comment

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

Tested, looks ok.

{"caller":"node.go:511","level":"debug","module":"worker/executor/committee","msg":"not scheduling a batch, incorrect state","runtime_id":"8000000000000000000000000000000000000000000000000000000000000000","state":"WaitingForFinalize","ts":"2023-05-19T09:50:37.127248029Z"}
{"caller":"node.go:536","level":"debug","module":"worker/executor/committee","msg":"next consensus block is an epoch transition, not scheduling batch","runtime_id":"8000000000000000000000000000000000000000000000000000000000000000","ts":"2023-05-19T09:50:37.551501162Z"}
{"caller":"node.go:536","level":"debug","module":"worker/executor/committee","msg":"next consensus block is an epoch transition, not scheduling batch","runtime_id":"8000000000000000000000000000000000000000000000000000000000000000","ts":"2023-05-19T09:50:37.654546076Z"}
{"caller":"node.go:536","level":"debug","module":"worker/executor/committee","msg":"next consensus block is an epoch transition, not scheduling batch","runtime_id":"8000000000000000000000000000000000000000000000000000000000000000","ts":"2023-05-19T09:50:38.127776063Z"}
{"caller":"node.go:511","level":"debug","module":"worker/executor/committee","msg":"not scheduling a batch, incorrect state","runtime_id":"8000000000000000000000000000000000000000000000000000000000000000","state":"WaitingForFinalize","ts":"2023-05-19T09:50:39.767028161Z"}

go/worker/compute/executor/committee/node.go Outdated Show resolved Hide resolved
Previously a compute node could propose a new batch just before the
epoch transition happened, resulting in computation that will be
discarded anyway.
@kostko kostko force-pushed the kostko/feature/exec-proposal-epochtransition branch from 414c912 to 54d8c1f Compare May 19, 2023 12:21
@kostko kostko merged commit c96898a into master May 22, 2023
3 checks passed
@kostko kostko deleted the kostko/feature/exec-proposal-epochtransition branch May 22, 2023 08:13
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