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

restrict refresh ring to heartBeat #1015

Merged
merged 4 commits into from
Nov 7, 2017
Merged

Conversation

kthommandra
Copy link
Contributor

@kthommandra kthommandra commented Nov 2, 2017

GetHosts uses queries on control connection. Any query error will
cause reconnection and refresh ring which calls GetHosts and thus
deadlocks.

Also it seems neater to have the ring refresh be done only by heartBeat.

Fixes #928

Verified that all tests that pass continue to pass with the fix.

Refer to issue #928 for details about this PR

When 'nodetool settraceprobability' is used,
it's possible to get a response with trace information
even though client did not specifically mark the query
for tracing.
GetHosts uses queries on control connection. Any query error will
cause reconnection and refresh ring which calls GetHosts and thus
deadlocks.

Also it seems neater to have the ring refresh be done only by heartBeat.

Fixes apache#928
@kthommandra
Copy link
Contributor Author

@Zariel - any comments on the PR?

@Zariel Zariel merged commit 9d35015 into apache:master Nov 7, 2017
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.

Deadlock during NewSession
2 participants