com.netflix.astyanax.connectionpool.exceptions.OperationTimeoutException

362 views
Skip to first unread message

Evan Chan

unread,
Oct 23, 2013, 4:41:09 PM10/23/13
to astyanax-cas...@googlegroups.com
Hey guys,

We are using Astyanax 1.56.26 with Cassandra 1.1.9 in various configurations.... and getting an exception like this:
com.netflix.astyanax.connectionpool.exceptions.OperationTimeoutException: OperationTimeoutException: [host=10.10.3.99(10.10.3.99):9160, latency=1(90011), attempts=14]TimedOutException()
	at com.netflix.astyanax.thrift.ThriftConverter.ToConnectionPoolException(ThriftConverter.java:171) ~[rookery-spark.jar:na]
	at com.netflix.astyanax.thrift.AbstractOperationImpl.execute(AbstractOperationImpl.java:61) ~[rookery-spark.jar:na]
	at com.netflix.astyanax.thrift.AbstractOperationImpl.execute(AbstractOperationImpl.java:28) ~[rookery-spark.jar:na]
	at com.netflix.astyanax.thrift.ThriftSyncConnectionFactoryImpl$ThriftConnection.execute(ThriftSyncConnectionFactoryImpl.java:151) ~[rookery-spark.jar:na]
	at com.netflix.astyanax.connectionpool.impl.AbstractExecuteWithFailoverImpl.tryOperation(AbstractExecuteWithFailoverImpl.java:69) ~[rookery-spark.jar:na]
	at com.netflix.astyanax.connectionpool.impl.AbstractHostPartitionConnectionPool.executeWithFailover(AbstractHostPartitionConnectionPool.java:253) ~[rookery-spark.jar:na]
	at com.netflix.astyanax.thrift.ThriftKeyspaceImpl.executeOperation(ThriftKeyspaceImpl.java:465) ~[rookery-spark.jar:na]
	at com.netflix.astyanax.thrift.ThriftKeyspaceImpl.access$000(ThriftKeyspaceImpl.java:67) ~[rookery-spark.jar:na]
	at com.netflix.astyanax.thrift.ThriftKeyspaceImpl$1.execute(ThriftKeyspaceImpl.java:103) ~[rookery-spark.jar:na]
	at ooyala.rookery.spark.MBICassandraCacheManager.saveMetadata(MBICacheManager.scala:75
The code is pretty simple, it just sets up a BatchMutation and does one write with batch.withRow(....).putEmptyColumn(....), but we have seen this in other code as well.

The thing that bothers us is that it throws this exception after something like 10-30 minutes of seeming to hang and not do anything.  So is there anything we can do to tune Astyanax to fail faster?   

We'd also like to know the exact reason for this exception.

Some configuration params:

          .setMaxConnsPerHost(100)
          .setMaxConns(1000)

Also, connection timeout is set to 2 seconds, and socket timeout to 10 seconds.

thanks,
Evan

Nate McCall

unread,
Oct 23, 2013, 6:11:04 PM10/23/13
to Evan Chan, astyanax-cas...@googlegroups.com
What RetryPolicy are you using? The default is RunOnce, but that log messages implies this specific operation has been tried 14 times already.  


--
You received this message because you are subscribed to the Google Groups "Astyanax Cassandra Client" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astyanax-cassandra...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
-----------------
Nate McCall
Austin, TX
@zznate

Co-Founder & Sr. Technical Consultant
Apache Cassandra Consulting
http://www.thelastpickle.com

Evan Chan

unread,
Oct 23, 2013, 6:28:35 PM10/23/13
to Nate McCall, astyanax-cas...@googlegroups.com
We have ExponentialRetry, but the max number of retries is set to 5.
--
--
Evan Chan
Staff Engineer
e...@ooyala.com  | 


Saravanan Soupramaniane

unread,
Jan 27, 2015, 3:05:58 AM1/27/15
to astyanax-cas...@googlegroups.com, na...@thelastpickle.com, e...@ooyala.com
Hi Guys,

I also have the same problem. Did you guys solved it? Help me out by explaining how you fixed it.
To unsubscribe from this group and stop receiving emails from it, send an email to astyanax-cassandra-client+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.



--
-----------------
Nate McCall
Austin, TX
@zznate

Co-Founder & Sr. Technical Consultant
Apache Cassandra Consulting
http://www.thelastpickle.com
Reply all
Reply to author
Forward
0 new messages