Skip to content

fix claim queue size#6257

Merged
alindima merged 7 commits intomasterfrom
alindima/fix-cq-size
Nov 4, 2024
Merged

fix claim queue size#6257
alindima merged 7 commits intomasterfrom
alindima/fix-cq-size

Conversation

@alindima
Copy link
Copy Markdown
Contributor

@alindima alindima commented Oct 28, 2024

Reported in #6161 (comment)

Fixes a bug introduced in #5461, where the claim queue would contain entries even if the validator groups storage is empty (which happens during the first session).

This PR sets the claim queue core count to be the minimum between the num_cores param and the number of validator groups

TODO:

  • prdoc
  • unit test

@alindima alindima added I2-bug The node fails to follow expected behavior. T8-polkadot This PR/Issue is related to/affects the Polkadot network. labels Oct 28, 2024
@alindima alindima requested review from eskimor and sandreim October 28, 2024 09:43
Copy link
Copy Markdown
Contributor

@sandreim sandreim left a comment

Choose a reason for hiding this comment

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

LGTM, just some suggestions.

}

/// Expected claim queue len. Can be different than the real length if for example we don't have
/// assignments for a core.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

claim_queue_len is a bit confusing as usually we mean by length of the claim queue the length of individual queues.

If we want to name it with regrads to claim queue, maybe claim_queue_cores?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

I2-bug The node fails to follow expected behavior. T8-polkadot This PR/Issue is related to/affects the Polkadot network.

Projects

Status: Completed

Development

Successfully merging this pull request may close these issues.

4 participants