Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

para scheduler: fix division #7339

Merged
merged 2 commits into from
Jun 11, 2023
Merged

para scheduler: fix division #7339

merged 2 commits into from
Jun 11, 2023

Conversation

ggwpez
Copy link
Member

@ggwpez ggwpez commented Jun 7, 2023

RIP Westend

There are a lot more cases where this number is used in arithmetic, so I assume that it should not be zero to beginn with.
So maybe one of the migrations caused it.

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@ggwpez
Copy link
Member Author

ggwpez commented Jun 7, 2023

I am actually going to close this since this cant be the root cause. The group rotating frequency is set to 10 in the previous block and should never be zero by invariant.
So something else must be wrong. If it was a faulty migration, it should error in the next block, but it failed in the same as the set_bode 🤔

@ggwpez ggwpez closed this Jun 7, 2023
@shawntabrizi
Copy link
Member

Still seems like a pretty safe thing to add?

@ggwpez
Copy link
Member Author

ggwpez commented Jun 7, 2023

Yea right, it should not do any harm. The actual fix is in #7340

@ggwpez ggwpez reopened this Jun 7, 2023
@liamaharon liamaharon added A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. T1-runtime This PR/Issue is related to the topic “runtime”. labels Jun 7, 2023
runtime/parachains/src/scheduler.rs Outdated Show resolved Hide resolved
@liamaharon liamaharon added A0-please_review Pull request needs code review. and removed A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). labels Jun 7, 2023
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
@gilescope
Copy link
Contributor

bot merge

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. T1-runtime This PR/Issue is related to the topic “runtime”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants