cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 叶江 <yejiang...@gmail.com>
Subject Reached an EOL or something bizzare occured.
Date Wed, 07 Apr 2010 13:52:49 GMT
hi:
  i setup a cluster with 2 nodes,and when i insert the data ,something wrong
happened . This is my major code:
            for(int i = 0;i < 500;i++)
               {
               String tmp = "age" + i;
               client.insert("Keyspace1",
        key_user_id,
        new ColumnPath("Standard1", null, tmp.getBytes("UTF-8")),
        //"24".getBytes("UTF-8"),
        Buffer,
        timestamp,
                       ConsistencyLevel.ONE);
               timestamp = System.currentTimeMillis();
               }
            Buffer is byte[],and filled with a jpg photo whose size is about
840kB.
   when the app run for about mintue,it throws exception.
            TimedOutException()
at
org.apache.cassandra.service.Cassandra$insert_result.read(Cassandra.java:9979)
at
org.apache.cassandra.service.Cassandra$Client.recv_insert(Cassandra.java:574)
at org.apache.cassandra.service.Cassandra$Client.insert(Cassandra.java:547)
at com.billion.test.TestInsert.main(TestInsert.java:43)

and the cassandra also shows the exception like this:
        WARN - Problem reading from socket connected to :
java.nio.channels.SocketChannel[connected local=/192.168.1.77:7000 remote=/
192.168.1.100:48690]
WARN - Exception was generated at : 04/07/2010 21:39:45 on thread
MESSAGING-SERVICE-POOL:2
Reached an EOL or something bizzare occured. Reading from:
/192.168.1.100BufferSizeRemaining: 16
java.io.IOException: Reached an EOL or something bizzare occured. Reading
from: /192.168.1.100 BufferSizeRemaining: 16
at org.apache.cassandra.net.io.StartState.doRead(StartState.java:44)
at org.apache.cassandra.net.io.ProtocolState.read(ProtocolState.java:39)
at org.apache.cassandra.net.io.TcpReader.read(TcpReader.java:95)
at
org.apache.cassandra.net.TcpConnection$ReadWorkItem.run(TcpConnection.java:445)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

thanks for you help.

Mime
View raw message