cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Sandney <bluefl...@gmail.com>
Subject Re: PHP client crashed if a column value > 8192 bytes
Date Thu, 22 Apr 2010 04:34:00 GMT
After many attempts I found this error only occurred when using PHP
thrift_protocol extension. I don't know if there are some parameters that I
could adjust for this issue. By the way, without the ext the speed is
obviously slow.

On Thu, Apr 22, 2010 at 12:01 PM, Ken Sandney <blueflycn@gmail.com> wrote:

> I am using PHP as client to talk to Cassandra server but I found out if any
> column value > 8192 bytes, the client crashed with the following error:
>
> PHP Fatal error:  Uncaught exception 'TException' with message 'TSocket:
>> timed out reading 1024 bytes from 10.0.0.177:9160' in
>> /home/phpcassa/include/thrift/transport/TSocket.php:264
>> Stack trace:
>> #0 /home/phpcassa/include/thrift/transport/TBufferedTransport.php(126):
>> TSocket->read(1024)
>> #1 [internal function]: TBufferedTransport->read(8192)
>> #2 /home/phpcassa/include/thrift/packages/cassandra/Cassandra.php(642):
>> thrift_protocol_read_binary(Object(TBinaryProtocolAccelerated),
>> 'cassandra_Cassa...', false)
>> #3 /home/phpcassa/include/thrift/packages/cassandra/Cassandra.php(615):
>> CassandraClient->recv_batch_insert()
>> #4 /home/phpcassa/include/phpcassa.php(197):
>> CassandraClient->batch_insert('Keyspace1', '38246', Array, 1)
>> #5 /home/phpcassa/test1.php(51): CassandraCF->insert('38246', Array)
>> #6 {main}
>>   thrown in /home/phpcassa/include/thrift/transport/TSocket.php on line
>> 264
>>
>
> Any idea about this?
>

Mime
View raw message