Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 85750 invoked from network); 3 Sep 2010 16:27:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Sep 2010 16:27:35 -0000 Received: (qmail 59377 invoked by uid 500); 3 Sep 2010 16:27:33 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 59302 invoked by uid 500); 3 Sep 2010 16:27:32 -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 59294 invoked by uid 99); 3 Sep 2010 16:27:32 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Sep 2010 16:27:32 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jshook@gmail.com designates 209.85.216.44 as permitted sender) Received: from [209.85.216.44] (HELO mail-qw0-f44.google.com) (209.85.216.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Sep 2010 16:27:10 +0000 Received: by qwc9 with SMTP id 9so2058085qwc.31 for ; Fri, 03 Sep 2010 09:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=5k78pda8I77/V+cY7eXo+B6LBwwV6c37syPWMxRsOuk=; b=AJ/1MoOVdkZkjaP9QSObwaryaEopuZn+17/E15Qs6R0VUzLm5OfY4eiUgmxmQ47t5y 44IFJnMhR/CjRPG9TEy5+WeOhwvCO8EIBs7XBx4sVcZ6QGYIBELmBnC9pkfd2MXtv8WS UR13eUD76QeWs2xdQjY3VeRiiRgNIXkvpz0Og= 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 :cc:content-type:content-transfer-encoding; b=haiuHM3/YUZda/+P+1LnSfoeVRidL4tk8Cs4pAbaHHJBEposlqruk516tmDXk0K1F+ iQ0dACYGjcONnbJ3w3ycOd8PXeVN6qmld0trQROLNIE6Wt+zl5ewTXYCI4MqfjJvfQUa QV6RSHtpwSPzJBH6WXxz4IMGZS0qfUzXGert8= MIME-Version: 1.0 Received: by 10.229.185.208 with SMTP id cp16mr796638qcb.213.1283531207139; Fri, 03 Sep 2010 09:26:47 -0700 (PDT) Received: by 10.229.69.140 with HTTP; Fri, 3 Sep 2010 09:26:47 -0700 (PDT) In-Reply-To: References: <201004271320185234997@gmail.com> <201004271721171837907@gmail.com> <201004281308026747719@gmail.com> Date: Fri, 3 Sep 2010 11:26:47 -0500 Message-ID: Subject: Re: Re: Broken pipe From: Jonathan Shook To: user@cassandra.apache.org Cc: Bingbing Liu Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I have been able to reproduce this, although it was a bug in application client code. If you keep a thrift client around longer after it has had an exception, it may generate this error. In my case, I was holding a reference via ThreadLocal<> to a stale storage object. Another symptom which may help identify this scenario is that the broken client will not initiate any network traffic, not even a SYN packet. You may have to shut down other client traffic on the client node in order to see this... 2010/4/28 Jonathan Ellis : > did you check the log for exceptions? > > On Wed, Apr 28, 2010 at 12:08 AM, Bingbing Liu wrote: >> but the situation is that ,at the beginning everything goes well, then w= hen >> the get_range_slices gets about 13,000,000 rows (set the key range to 20= 00) >> >> the exception happens. >> >> and when i do the same thing on a smaller data set, no such thing happen= s. >> >> 2010-04-28 >> ________________________________ >> Bingbing Liu >> ________________________________ >> =B7=A2=BC=FE=C8=CB=A3=BA Jonathan Ellis >> =B7=A2=CB=CD=CA=B1=BC=E4=A3=BA 2010-04-27 20:51:11 >> =CA=D5=BC=FE=C8=CB=A3=BA user >> =B3=AD=CB=CD=A3=BA rucbing >> =D6=F7=CC=E2=A3=BA Re: Broken pipe >> get_range_slices works fine in the system tests, so something is wrong >> on your client side. Some possibilities: >> - sending to a non-Thrift port >> - using an incompatible set of Thrift bindings than the one your >> server supports >> - mixing a framed client with a non-framed server or vice versa >> [moving followups to user list] >> 2010/4/27 Bingbing Liu : >>> when i use get_range_slices, i get the exceptions , i don't know what h= appens >>> >>> hope someone can help me >>> >>> >>> org.apache.thrift.transport.TTransportException: java.net.SocketExcepti= on: Broken pipe >>> at org.apache.thrift.transport.TIOStreamTransport.write(TIOStreamTra= nsport.java:142) >>> at org.apache.thrift.protocol.TBinaryProtocol.writeI32(TBinaryProtoc= ol.java:152) >>> at org.apache.thrift.protocol.TBinaryProtocol.writeMessageBegin(TBin= aryProtocol.java:80) >>> at org.apache.cassandra.thrift.Cassandra$Client.send_get_range_slice= s(Cassandra.java:592) >>> at org.apache.cassandra.thrift.Cassandra$Client.get_range_slices(Cas= sandra.java:586) >>> at org.clouddb.test.GrepSelect.main(GrepSelect.java:64) >>> Caused by: java.net.SocketException: Broken pipe >>> at java.net.SocketOutputStream.socketWrite0(Native Method) >>> at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:9= 2) >>> at java.net.SocketOutputStream.write(SocketOutputStream.java:136) >>> at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.jav= a:65) >>> at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109) >>> at org.apache.thrift.transport.TIOStreamTransport.write(TIOStreamTra= nsport.java:140) >>> ... 5 more >>> >>> >>> 2010-04-27 >>> >>> >>> >>> Bingbing Liu >>> >> -- >> Jonathan Ellis >> Project Chair, Apache Cassandra >> co-founder of Riptano, the source for professional Cassandra support >> http://riptano.com > > > > -- > Jonathan Ellis > Project Chair, Apache Cassandra > co-founder of Riptano, the source for professional Cassandra support > http://riptano.com >