Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 70948 invoked from network); 16 Jun 2010 21:12:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Jun 2010 21:12:48 -0000 Received: (qmail 26210 invoked by uid 500); 16 Jun 2010 21:12:48 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 26193 invoked by uid 500); 16 Jun 2010 21:12:47 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 26185 invoked by uid 99); 16 Jun 2010 21:12:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 21:12:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 21:12:44 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5GLCNnh029193 for ; Wed, 16 Jun 2010 21:12:23 GMT Message-ID: <32354919.38691276722743212.JavaMail.jira@thor> Date: Wed, 16 Jun 2010 17:12:23 -0400 (EDT) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Commented: (CASSANDRA-1199) multiget_slice() calls using TBinaryProtocolAccelerated always take up to the TSocket->recvTimeout before returning results In-Reply-To: <26007027.37861276721843292.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-1199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12879502#action_12879502 ] Jonathan Ellis commented on CASSANDRA-1199: ------------------------------------------- (But your analysis of the problem seems more thorough, you should add your investigation of TSocket->read over there) > multiget_slice() calls using TBinaryProtocolAccelerated always take up to the TSocket->recvTimeout before returning results > --------------------------------------------------------------------------------------------------------------------------- > > Key: CASSANDRA-1199 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1199 > Project: Cassandra > Issue Type: Bug > Affects Versions: 0.7 > Environment: CentOS 5.2 > Cassandra Nightly Build June 11th > Thrift Trunc > Using TBinaryProtocolAccelerated only! > Reporter: Arya Goudarzi > Attachments: multiget_slice.php > > > I am comparing the following > - Reading of 100 SuperColumns in 1 SCF row using multiget_slice() with 1 key and 1 column name in 100 loop iterations > - Reading of 100 SuperColumns in 1 SCF row using multiget_slice() with 1 key and 100 column names in a single call > I always get a consistent result and that is the single call takes more time then 100 calls. After some investigation, it seamed that the time it took to execute multiget_slice with 100 columns is always close to the TSocket->recvTimeout, Increasing the recvTimeout results that call to take that much time before retuning. After digged into TSocket->read (TSocket.php line 261) and looking at some of the meta data of fread, it seams that none of the buffer chunks get the eof flag=1. And the stream waits till timeout has reached. > This only happens if TBinaryProtocolAccelerated (thrift_protocol.so) is used. > I have attached my code to reproduce this issue. You can set the timeouts to see how it affects the read call in multiget_slice. > Please investigate and move to Thrift if not a Cassandra interface issue. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.