cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nate McCall <>
Subject Re: Cassandra All host(s) tried for query failed (no host was tried)
Date Thu, 31 Aug 2017 03:31:07 GMT
If these app instances sit idle for a while, they might just be timing out
their sockets. You can tweak socket settings on the driver as described

Perhaps start with explicitly setting keepAlive to true as that may or may
not be set depending on whether it's using the native epoll extension or
NIO directly (more details about such on the page above).

On Thu, Aug 31, 2017 at 3:10 AM, Ivan Iliev <>

> Hello everyone,
> We are using Cassandra 3.9 for storing quite a lot of data produced from
> our tester machines.
> Occasionally, we are seeing issues with apps not being able to communicate
> with Cassandra nodes, returning the following errors (captured in
> servicemix logs):
>>  by: com.datastax.driver.core.exceptions.NoHostAvailableException: All
>> host(s) tried for query failed (no host was tried)
>> at com.datastax.driver.core.RequestHandler.reportNoMoreHosts(
>> at com.datastax.driver.core.RequestHandler.access$1000(
>> at com.datastax.driver.core.RequestHandler$SpeculativeExecution.
>> sendRequest(
>> at com.datastax.driver.core.RequestHandler.startNewExecution(
>> at com.datastax.driver.core.RequestHandler.sendRequest(
>> at com.datastax.driver.core.SessionManager.executeAsync(
>> ... 107 more
> As a result, apps that try to send data to cassandra get crashed due to
> running out of memory and we have to restart the containers in which they
> run.
> So far I have not been able to identify what might be the cause for this
> as nothing (at least I could not find anything relevant on the timestamps)
> in the cassandra debug and system logs.
> Could you share some insight on this ? What to check and where to start
> from , in order to troubleshoot this.
> Thanks !
> Ivan

Nate McCall
Wellington, NZ

Apache Cassandra Consulting

View raw message