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 separate grid reconnection mutex #18862

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

klauspost
Copy link
Contributor

@klauspost klauspost commented Jan 24, 2024

Description

Give more safety around reconnects and make sure a state change isn't missed. In principle several incoming requests could be processed at the same time under strange network conditions.

Adds separate mutex and doesn't mix in the testing mutex.

How to test this PR?

Tested with several runs of λ go test -race -v -count=500 which includes reconnection test.

Types of changes

  • Bug fix/ Safety (non-breaking change which fixes an issue)

Give more safety around reconnects and make sure a state change isn't missed.

Tested with several runs of `λ go test -race -v -count=500`

Adds separate mutex and doesn't mix in the testing mutex.
@harshavardhana harshavardhana merged commit 6968f72 into minio:master Jan 24, 2024
20 checks passed
Copy link
Contributor

@fwessels fwessels left a comment

Choose a reason for hiding this comment

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

LGTM (but already merged... 😄)

@klauspost klauspost deleted the add-separate-reconnect-mutex branch January 25, 2024 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants