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

[BACKPORT/23.0.x] go/worker: Minor bug fixes #5406

Merged
merged 7 commits into from
Oct 20, 2023

Conversation

peternose
Copy link
Contributor

@peternose peternose commented Oct 18, 2023

Backport of #5404 and #5403.

The timestamp of the last block lags behind and depends on the consensus
layer's speed. As a result, it is not suitable for scheduling backup
proposers.
Transition to a new state once all transactions are fetched. This will
immediately trigger batch processing.
Calculating the pool rank from roothash events does not prevent backup
schedulers from starting when higher-ranked schedulers have already
committed to their proposals, especially when the proposer timeout
is shorter than the time required to generate a consensus block.
Therefore, it is more suitable to estimate the rank from observed
executor commitments.
In unit tests, CometBFT typically generates consensus blocks
at a rate of 10 per second. However, if consensus timeout occurs
in steps RoundStepPropose or RoundStepPrecommitWait, this rate
can significantly decrease to just 1 block per second or even
worse. If test requires waiting for a few consensus blocks,
these delays can accumulate and potentially lead to failures.
@kostko kostko added the c:backport Category: backport to stable branch label Oct 18, 2023
@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

❗ No coverage uploaded for pull request base (stable/23.0.x@2f17c41). Click here to learn what that means.
The diff coverage is n/a.

@@               Coverage Diff                @@
##             stable/23.0.x    #5406   +/-   ##
================================================
  Coverage                 ?   66.61%           
================================================
  Files                    ?      533           
  Lines                    ?    56321           
  Branches                 ?        0           
================================================
  Hits                     ?    37518           
  Misses                   ?    14394           
  Partials                 ?     4409           

@kostko
Copy link
Member

kostko commented Oct 18, 2023

#5403 (first commit).

Why not backport the whole thing? We will need to do it anyway.

@peternose peternose changed the title [BACKPORT/23.0.x] go/worker/compute/executor: Minor bug fixes [BACKPORT/23.0.x] go/worker: Minor bug fixes Oct 18, 2023
@peternose peternose marked this pull request as ready for review October 18, 2023 12:50
@peternose peternose merged commit 7bc5542 into stable/23.0.x Oct 20, 2023
3 checks passed
@peternose peternose deleted the peternose/stable/23.0.x/backport-5404 branch October 20, 2023 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:backport Category: backport to stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants