Open jsbret opened 10 years ago
Looks like it's been fixed. https://github.com/hector-client/hector/commit/07f271c555a243a551af53e0392295058cc9d627 Any chance this will be ported into a 1.1 release? Or is support for Cassandra 1.1 essentially deprecated?
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