CassJMeter icon indicating copy to clipboard operation
CassJMeter copied to clipboard

Fixed com.netflix.astyanax.connectionpool.exceptions.PoolTimeoutException

Open sbtourist opened this issue 13 years ago • 3 comments

Previously, a com.netflix.astyanax.connectionpool.exceptions.PoolTimeoutException was occurring when running a test with a number of concurrent threads higher than 2. This was due to MaxBlockedThreadsPerHost not set into com.netflix.jmeter.connections.a6x.AstyanaxConnection.

sbtourist avatar Jun 07 '12 16:06 sbtourist

The problem is, if that configuration isn't set, and you have more threads than configured hosts, exceeding threads will be timed-out by the Astyanax client pool with PoolTimeoutException, making your tests basically fail (try that if you want to be sure, but should be fairly intuitive too).

What you suggest may be correct, but the other way around: that is, set MaxConnsPerHost and MaxBlockedThreadsPerHost equal one to the other by default so that the case above (pretty common with small clusters imho) can work, and eventually override externally.

sbtourist avatar Jul 16 '12 16:07 sbtourist

Any further comments? Did you have the chance to actually try it?

sbtourist avatar Jul 19 '12 15:07 sbtourist

I think this should be another different option with new interface field. Connections not equal threads queue per connection. This option can overflow when i use many connections with many threads.

epikhinm avatar Feb 15 '13 08:02 epikhinm