You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Ken Sandney <bl...@gmail.com> on 2010/04/22 06:01:30 UTC

PHP client crashed if a column value > 8192 bytes

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?

Re: PHP client crashed if a column value > 8192 bytes

Posted by Zhiguo Zhang <mi...@gmail.com>.
Maybe you have to send this message also to thrift user mail list?


On Thu, Apr 22, 2010 at 6:34 AM, Ken Sandney <bl...@gmail.com> wrote:

> 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 <bl...@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?
>>
>
>

Re: PHP client crashed if a column value > 8192 bytes

Posted by Ken Sandney <bl...@gmail.com>.
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 <bl...@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?
>