incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Wille <rwi...@fold3.com>
Subject Intermittent connection error
Date Thu, 21 Nov 2013 18:11:29 GMT
I intermittently get the following error when I try to execute my first
query after connecting:

Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All
host(s) tried for query failed (no host was tried)
at 
com.datastax.driver.core.exceptions.NoHostAvailableException.copy(NoHostAvai
lableException.java:64)
at 
com.datastax.driver.core.ResultSetFuture.extractCauseFromExecutionException(
ResultSetFuture.java:271)
at 
com.datastax.driver.core.ResultSetFuture.getUninterruptibly(ResultSetFuture.
java:187)
at com.datastax.driver.core.Session.execute(Session.java:126)
at com.datastax.driver.core.Session.execute(Session.java:77)

The odd part is the "(no host was tried)". I definitely have provided it
with a host, since this exact same code works most of the time.

I don't know if this might be related to a question I posted earlier, which
I haven't been able to resolve yet. Whenever I issue a truncate command, I
get the error "Unable to complete request: one or more nodes were
unavailable".

I've got a single node with all empty tables. It is definitely up and
available, since most of the time I can connect and do stuff (except
truncate, which I can never do).

The only thing in the logs that looks relevant is this:

INFO [HANDSHAKE-/192.168.98.121] 2013-11-20 11:36:59,064
OutboundTcpConnection.java (line 386) Handshaking version with
/192.168.98.121
INFO [HANDSHAKE-/192.168.98.121] 2013-11-20 11:37:04,064
OutboundTcpConnection.java (line 395) Cannot handshake version with
/192.168.98.121

I'm running Cassandra 2.0.2.

Any help would be most appreciated.

Thanks

Robert



Mime
View raw message