Skip to content

Conversation

@satushh
Copy link
Collaborator

@satushh satushh commented Nov 3, 2025

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

Which issues(s) does this PR fix?

#15938

Other notes for review

Currently in the process of reproducing the issue locally (kurtosis or otherwise). Only after that we can be sure if the fix in this PR actually fixes this issue.

Edit: I am yet to reproduce but the change in this PR should be there anyway even if it doesn't solve the bug.

Acknowledgements

@satushh satushh marked this pull request as ready for review November 13, 2025 15:56
@satushh satushh requested a review from james-prysm November 13, 2025 16:00
}

// When increasing custody group count, prevent earliestAvailableSlot from going backward.
if storedEarliestAvailableSlot != 0 && earliestAvailableSlot < storedEarliestAvailableSlot {
Copy link
Contributor

Choose a reason for hiding this comment

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

Not tested

// When increasing custody group count, prevent earliestAvailableSlot from going backward.
if storedEarliestAvailableSlot != 0 && earliestAvailableSlot < storedEarliestAvailableSlot {
return errors.Errorf(
"cannot decrease earliest available slot from %d to %d when increasing custody group count from %d to %d. ",
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to add a period at the end of the error.

Copy link
Contributor

@nalepae nalepae left a comment

Choose a reason for hiding this comment

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

I don't see how this PR solves the initial issue.
For sure, if such a thing happens, it will now error.
But the bug will still happen.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants