Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 41978 invoked from network); 22 Apr 2010 04:34:30 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Apr 2010 04:34:30 -0000 Received: (qmail 81884 invoked by uid 500); 22 Apr 2010 04:34:29 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 81759 invoked by uid 500); 22 Apr 2010 04:34:28 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 81751 invoked by uid 99); 22 Apr 2010 04:34:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 04:34:27 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of blueflycn@gmail.com designates 209.85.160.44 as permitted sender) Received: from [209.85.160.44] (HELO mail-pw0-f44.google.com) (209.85.160.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 04:34:21 +0000 Received: by pwj2 with SMTP id 2so5703155pwj.31 for ; Wed, 21 Apr 2010 21:34:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type; bh=gHhgQAQLdZ8aeCsCTKo/NNJ22Q8QoXPsf7TjBSmcYXk=; b=JE1X3N5SUMo4Xs9BcIPSYln/mFoAE+FfmlkKwT8uHzpbzNOoeYBmBQFMRUdZymyRW0 SVqWWk1iSBAbZGpx5hG3yVUU9CUCZ2zX+emG2PZF98jY3JzRpaG8DyC5xJd/LNQOnRuV Bg4NwAoNC8VDcm5+C4HAo0MoPqAFzDWbkNF/A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=G1UF2OLeYcQRdKBK/imSZAsoSNT5q4nTunHFLxsig89qiD7c2KkmDIvD3MOftZ/JED 3JsPxO7gxjPsYagcSE6Tu687nXpvmlnd50POJGnbWNmZIwX9qEKNyjBCjsefeHnbGf3h ZurOmvfHxboBjvHmf2YamNUXaQuz1f4ElyM5s= MIME-Version: 1.0 Received: by 10.140.131.13 with HTTP; Wed, 21 Apr 2010 21:34:00 -0700 (PDT) In-Reply-To: References: Date: Thu, 22 Apr 2010 12:34:00 +0800 Received: by 10.141.22.20 with SMTP id z20mr3055858rvi.182.1271910840610; Wed, 21 Apr 2010 21:34:00 -0700 (PDT) Message-ID: Subject: Re: PHP client crashed if a column value > 8192 bytes From: Ken Sandney To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=000e0cd1eb0ad730a90484cbd16c --000e0cd1eb0ad730a90484cbd16c Content-Type: text/plain; charset=ISO-8859-1 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 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? > --000e0cd1eb0ad730a90484cbd16c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 co= uld adjust for this issue. By the way, without the ext the speed is obvious= ly slow.

On Thu, Apr 22, 2010 at 12:01 PM, Ken Sandne= y <blueflycn@gm= ail.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:=A0 Uncaught exception 'TException' with message &#= 39;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/TBufferedTranspo= rt.php(126): TSocket->read(1024)
#1 [internal function]: TBufferedTra= nsport->read(8192)
#2 /home/phpcassa/include/thrift/packages/cassandr= a/Cassandra.php(642): thrift_protocol_read_binary(Object(TBinaryProtocolAcc= elerated), 'cassandra_Cassa...', false)
#3 /home/phpcassa/include/thrift/packages/cassandra/Cassandra.php(615): Cas= sandraClient->recv_batch_insert()
#4 /home/phpcassa/include/phpcassa.= php(197): CassandraClient->batch_insert('Keyspace1', '38246&= #39;, Array, 1)
#5 /home/phpcassa/test1.php(51): CassandraCF->insert('38246', Ar= ray)
#6 {main}
=A0 thrown in /home/phpcassa/include/thrift/transport/= TSocket.php on line 264

Any idea about this?

--000e0cd1eb0ad730a90484cbd16c--