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: move to fetch_update from fetch_add for IDs #25663

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

mgattozzi
Copy link
Contributor

With this change we now provide a check for new IDs for overflow. This will cause the system to panic on overflow now rather than causing silent corruption as this is an unrecoverable state. While this is a highly unlikely scenario given how big the id numbers can be, it would be better to have this in place now, rather than trying to figure out a subtle nasty corruption bug later.

Closes #25542

With this change we now provide a check for new IDs for overflow. This
will cause the system to panic on overflow now rather than causing
silent corruption as this is an unrecoverable state. While this is a
highly unlikely scenario given how big the id numbers can be, it would
be better to have this in place now, rather than trying to figure out
a subtle nasty corruption bug later.

Closes #25542
@mgattozzi mgattozzi merged commit 238642b into main Dec 16, 2024
13 checks passed
@mgattozzi mgattozzi deleted the mgattozzi/cleanup/make-fetch-happen branch December 16, 2024 16:32
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.

Use fetch_update when generating new IDs
2 participants