cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "cbertu81@libero.it" <cbert...@libero.it>
Subject Ring up but read fails ...
Date Sun, 23 Jan 2011 11:10:40 GMT
Hi all,
I build a java webapp using Cassandra as DB.
At the startup the application creates a cassandra pool using the Pelops 
client ... it my dev and test environment everything works but in production I 
have some strange problems.
So I built a JSP to check the status of Cassandra DB, doing nothing more than 
a ...

try {
  // connect to the webapp pool
  // make some select in quorum mode
  // print OK
} catch (Exception e) {
  // print KO
}

well this page "often" returns KO. While in dev/test environment is OK if 
nodes are up (and KO if some nodes are down), in production it "often" (not 
always) print KO also if the nodetool ring returns all nodes "UP".

Here is and extract of the errors of the webapp ...

ERROR UserNameCmd:38 - java.net.SocketException: Broken pipe
ERROR UidCmd:61 - java.net.SocketException: Broken pipe
org.apache.thrift.transport.TTransportException: java.net.SocketException: 
Broken pipe
...
 at org.apache.cassandra.thrift.Cassandra$Client.send_get_slice(Cassandra.java:
386)   at org.apache.cassandra.thrift.Cassandra$Client.get_slice(Cassandra.java:
371)

Any idea for "debugging"? :)

(5 nodes, replicationfactor=3)

Best regards

Carlo

Mime
View raw message