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

DynamicLoadBalancingPolicy: LatencyAwareHClientPool may throw NoSuchElementException under certain circumstances #650

Open
jsbret opened this issue Jan 16, 2014 · 1 comment

Comments

@jsbret
Copy link

jsbret commented Jan 16, 2014

In version 1.1-4, the call to "latencies.remove()" (LatencyAwareHClientPool line 48) may throw a NoSuchElementException if the "resetThread" (See DynamicLoadBalancingPolicy instantiation line 62-74) clear the "latencies" LinkedBlockingDeque just before.

Using the poll() method instead of remove() should fix the issue.

How can i submit a patch ?

Thanks

@canadianveggie
Copy link

Looks like it's been fixed.
07f271c
Any chance this will be ported into a 1.1 release? Or is support for Cassandra 1.1 essentially deprecated?

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

No branches or pull requests

2 participants