Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5793F96BC for ; Tue, 17 Apr 2012 10:16:00 +0000 (UTC) Received: (qmail 63818 invoked by uid 500); 17 Apr 2012 10:15:58 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 63797 invoked by uid 500); 17 Apr 2012 10:15:58 -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 63787 invoked by uid 99); 17 Apr 2012 10:15:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2012 10:15:57 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a44.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Apr 2012 10:15:50 +0000 Received: from homiemail-a44.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a44.g.dreamhost.com (Postfix) with ESMTP id 75945118058 for ; Tue, 17 Apr 2012 03:15:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; q=dns; s=thelastpickle.com; b=26H7vx0+KI zmXhxPls5roHVA2BOvregYqtWN5H/oH0u9wI2EKcjQlAXWHvsD+Qx9zfaPUEKeUe 3qhzGfOSomBv5iTEHxemn2/XP4t7Xm4B0GrfX6pq7FkwxFUUZFNtxcO81w00DvRf hu93sjZNoq7RpjimWbXelOONU86UdBE64= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; s=thelastpickle.com; bh=NahMDWwusOtebnRn 4VS2T2krfrM=; b=yNv7F9wFozApB10nrk4Gc20/DbQp/RqrpSvyLdAIHuISA/QF C2U+e9ib4aMxnMHwXH8thO7PfUPe+3ocBPnDQbeGxuE/YLy9kExTDyMMW1HJs9uR zETtK9okx8Afp8hnjH/UAzEQJI4+Xh/MsEdBEbFu4VhFf3TPFEZavWqdjlM= Received: from [172.16.1.3] (125-236-193-159.adsl.xtra.co.nz [125.236.193.159]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a44.g.dreamhost.com (Postfix) with ESMTPSA id DFA55118057 for ; Tue, 17 Apr 2012 03:15:28 -0700 (PDT) From: aaron morton Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: multipart/alternative; boundary="Apple-Mail=_610E3B17-F413-470B-B0AD-B404B3919B62" Subject: Re: java.nio.BufferOverflowException from cassandra server Date: Tue, 17 Apr 2012 22:15:27 +1200 In-Reply-To: <4F8CAEA7.7090509@cse.ohio-state.edu> To: user@cassandra.apache.org References: <4F8CAEA7.7090509@cse.ohio-state.edu> Message-Id: <0E0FFBC3-499F-415F-96FF-48EBD7C6794E@thelastpickle.com> X-Mailer: Apple Mail (2.1257) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_610E3B17-F413-470B-B0AD-B404B3919B62 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 What version are you on ? it's on odd error for sure. Try eliminates changes until you get to a = stable base: use the default install out of the box and the tools/stress = app in the source distro. If that works try it with your C++ client.=20 Hope that helps.=20 ----------------- Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 17/04/2012, at 11:43 AM, Aniket Chakrabarti wrote: > Hi, >=20 > I have set up a 4 node cassandra cluster. I am using the Thrift C++ = API to write a simple C++ application with creates a 50% READ 50% WRITE = requests. Every time near about a thousand request mark, I am getting = the following exception and my connection is broken: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D > ERROR 17:30:27,647 Error occurred during processing of message. > java.nio.BufferOverflowException > at java.nio.charset.CoderResult.throwException(Unknown Source) > at java.lang.StringCoding$StringEncoder.encode(Unknown Source) > at java.lang.StringCoding.encode(Unknown Source) > at java.lang.String.getBytes(Unknown Source) > at = org.apache.thrift.protocol.TBinaryProtocol.writeString(TBinaryProtocol.jav= a:185) > at = org.apache.thrift.protocol.TBinaryProtocol.writeMessageBegin(TBinaryProtoc= ol.java:92) > at = org.apache.cassandra.thrift.Cassandra$Processor$insert.process(Cassandra.j= ava:3302) > at = org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:288= 9) > at = org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(Cust= omTThreadPoolServer.java:187) > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown = Source) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown = Source) > at java.lang.Thread.run(Unknown Source) > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D > Some info about the config I am using: > - It is a 4 node cluster with only 1 seed. > -The consistency level is also set to ONE. > -The max heap size and new heap size is set to 4G and 800M(I tried = without setting them as well) > -Java is run in the interpreted mode(-Xint) > -I'm using user mode linux >=20 > Any pointers to what I might be doing wrong will be very helpful. >=20 > Thanks in advance, > Aniket --Apple-Mail=_610E3B17-F413-470B-B0AD-B404B3919B62 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1
http://www.thelastpickle.com

On 17/04/2012, at 11:43 AM, Aniket Chakrabarti = wrote:

Hi,

I have set up a 4 node cassandra cluster. = I am using the Thrift C++ API to write a simple C++ application with = creates a 50% READ 50% WRITE requests. Every time near about a thousand = request mark, I am getting the following exception and my connection is = broken:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D
ERROR 17:30:27,647 Error occurred during = processing of message.
java.nio.BufferOverflowException
=        at = java.nio.charset.CoderResult.throwException(Unknown Source)
=        at = java.lang.StringCoding$StringEncoder.encode(Unknown Source)
=        at = java.lang.StringCoding.encode(Unknown Source)
=        at = java.lang.String.getBytes(Unknown Source)
=        at = org.apache.thrift.protocol.TBinaryProtocol.writeString(TBinaryProtocol.jav= a:185)
       at = org.apache.thrift.protocol.TBinaryProtocol.writeMessageBegin(TBinaryProtoc= ol.java:92)
       at = org.apache.cassandra.thrift.Cassandra$Processor$insert.process(Cassandra.j= ava:3302)
       at = org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:288= 9)
       at = org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(Cust= omTThreadPoolServer.java:187)
=        at = java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
=        at = java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
=        at = java.lang.Thread.run(Unknown = Source)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D
Some info about the config I am = using:
- It is a 4 node cluster with only 1 seed.
-The consistency = level is also set to ONE.
-The max heap size and new heap size is set = to 4G and 800M(I tried without setting them as well)
-Java is run in = the interpreted mode(-Xint)
-I'm using user mode linux

Any = pointers to what I might be doing wrong will be very = helpful.

Thanks in = advance,
Aniket

= --Apple-Mail=_610E3B17-F413-470B-B0AD-B404B3919B62--