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 multiple lock acquire on membership update #5576

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

3vilhamster
Copy link
Contributor

What changed?
Membership ring on refresh need to update the ring members information. This was done one by one, even though it could be done in 1 operation.
I've switched to a single operation that does a single lock acquire on update.
No logical changes.

Why?
To decrease chances of seeing errors like "Failed to send listener notification, chanel is full".

How did you test it?
unit tests.

Potential risks

Release notes

Documentation Changes

Copy link
Member

@Groxx Groxx left a comment

Choose a reason for hiding this comment

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

👍 yep, seems like a straightforward improvement, no underlying semantic changes or any other possible excitement. Thanks!

@@ -31,7 +31,6 @@ import (

"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"

Copy link
Member

Choose a reason for hiding this comment

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

ah. this is the non-clean-code issue. just missing a fmt.

@3vilhamster 3vilhamster enabled auto-merge (squash) January 5, 2024 08:57
@3vilhamster 3vilhamster merged commit a3ad939 into cadence-workflow:master Jan 5, 2024
16 checks passed
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.

3 participants