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

CASSGO-41 Fix deadlock in refresh debouncer stop #1767

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

joao-r-reis
Copy link
Contributor

fix #1752

// https://github.com/gocql/gocql/issues/1752
func TestRefreshDebouncer_DeadlockOnStop(t *testing.T) {
// there's no way to guarantee this bug manifests because it depends on which `case` is picked from the `select`
// with 4 iterations of this test the deadlock would be hit pretty consistently

Choose a reason for hiding this comment

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

Does this comment indicate that you were reliably reproducing it without the fix in place or is it just speculating that 4 should be enough to hit it?

Copy link
Contributor Author

@joao-r-reis joao-r-reis Jul 30, 2024

Choose a reason for hiding this comment

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

I was reliably reproducing it with 4 without the fix in place

Copy link

@kevinkyyro kevinkyyro left a comment

Choose a reason for hiding this comment

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

Not sure if my review helps get this merged, but I checked out the branch and verified that the test reliably reproduces the bug without the fix and passes with the fix. Thanks!

@joao-r-reis joao-r-reis changed the title Fix deadlock in refresh debouncer stop CASSGO-41 Fix deadlock in refresh debouncer stop Nov 25, 2024
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.

CASSGO-41 Deadlock in refreshDebouncer when reconnection fails
2 participants