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

Add a test to ensure that calling Set after Close does not panic #5

Merged
merged 1 commit into from
Sep 20, 2022

Conversation

josephschorr
Copy link
Contributor

@josephschorr josephschorr commented Jun 30, 2022

On a previous version of ristretto, we experienced a panic occasionally due to calling Set after Close resulting in a write to the closed setBuf channel. We originally wrote this test as part of a fix on a forked version of Ristretto. Thankfully, on HEAD, this test is no longer failing, so we are submitting it to act as a guard against any regressions in the future.

NOTE: The update to golang.org/x/sys also fixes a build issue with Golang 1.18 on Darwin


This change is Reviewable

On a previous version of ristretto, we experienced a panic occasionally due to calling Set after Close resulting in a write to the closed setBuf channel. We originally wrote this test as part of a fix on a forked version of Ristretto. Thankfully, on HEAD, this test is no longer failing, so we are submitting it to act as a guard against any regressions in the future.
@CLAassistant
Copy link

CLAassistant commented Jun 30, 2022

CLA assistant check
All committers have signed the CLA.

@jzelinskie
Copy link

@manishrjain @jarifibrahim any updates? We'd like to migrate off our fork to the new upstream.

Copy link

@jarifibrahim jarifibrahim left a comment

Choose a reason for hiding this comment

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

hi @josephschorr @jzelinskie 👋 ! Thanks for the PR.
The change looks good to me. I cannot merge this PR because I no longer have write access to this repository.
@akon-dey can review and merge this PR.

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.

5 participants