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

fix error handling in checkpointing module #257

Merged

Conversation

KonradStaniec
Copy link
Collaborator

Fix error handling in checkpointing module:

  • the line err = types.ErrInvalidCkptStatus.Wrapf("the status of the checkpoint should be %s", from.String()) was just allocating error and not doing anything with it
  • error from ckptWithMeta, err := k.GetRawCheckpoint(ctx, epoch) was just getting swallowed

@KonradStaniec KonradStaniec requested a review from a team as a code owner November 8, 2024 05:14
@KonradStaniec KonradStaniec requested review from Lazar955 and RafilxTenfen and removed request for a team November 8, 2024 05:14
@KonradStaniec KonradStaniec force-pushed the konradstaniec/fix-todo-checkpoint-error-handling branch from c782e60 to 92a8583 Compare November 8, 2024 05:16
@KonradStaniec KonradStaniec force-pushed the konradstaniec/fix-todo-checkpoint-error-handling branch from 92a8583 to 5c07691 Compare November 8, 2024 09:25
@KonradStaniec KonradStaniec merged commit aa99e2e into main Nov 8, 2024
19 checks passed
@KonradStaniec KonradStaniec deleted the konradstaniec/fix-todo-checkpoint-error-handling branch November 8, 2024 09:57
filippos47 pushed a commit that referenced this pull request Jan 23, 2025
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.

3 participants