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 a panic in index-gateway caused by double closing of a channel #5298

Merged
merged 4 commits into from
Feb 2, 2022

Conversation

sandeepsukhani
Copy link
Contributor

What this PR does / why we need it:
When getOrCreateIndexSet method is called concurrently, the caller who is creating the index set should be the only one calling its Init function. I did a mistake in not returning the index set from the callers who found the index set already and continuing with initialization. This PR fixes the issue by avoiding calling Init function on index sets multiple times.

@pull-request-size pull-request-size bot added size/M and removed size/S labels Feb 2, 2022
@sandeepsukhani
Copy link
Contributor Author

Thanks for the review and approval @chaudum!

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants