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: race on validation between load and eviction #68

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

pvlugter
Copy link
Contributor

@pvlugter pvlugter commented Aug 9, 2024

Potential fix for #67. Still needs to be properly reproduced and tested.

Possible race on validation, where state with the relevant pid is expected to be loaded, but is evicted and state updated between calling load and getting the current state.

I'll look at reproducing first, and then follow up with under-provisioned performance test, where it was first seen.

@patriknw
Copy link
Member

patriknw commented Aug 9, 2024

looks like a good improvement

@pvlugter
Copy link
Contributor Author

Haven't seen this in testing. Not very likely to happen. But useful to have things robust against possible races anyway.

@pvlugter pvlugter marked this pull request as ready for review August 13, 2024 23:43
@pvlugter pvlugter requested a review from patriknw August 14, 2024 23:47
Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

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

LGTM

@patriknw patriknw merged commit beb29bc into main Aug 15, 2024
3 checks passed
@patriknw patriknw deleted the projection-fall-behind branch August 15, 2024 06:41
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.

2 participants