incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <>
Subject Re: java.nio.BufferOverflowException from cassandra server
Date Tue, 17 Apr 2012 10:15:27 GMT
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. 

Hope that helps. 

Aaron Morton
Freelance Developer

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:
> ===========================
> 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(
>        at org.apache.thrift.protocol.TBinaryProtocol.writeMessageBegin(
>        at org.apache.cassandra.thrift.Cassandra$Processor$insert.process(
>        at org.apache.cassandra.thrift.Cassandra$Processor.process(
>        at org.apache.cassandra.thrift.CustomTThreadPoolServer$
>        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>        at java.util.concurrent.ThreadPoolExecutor$ Source)
>        at Source)
> ==============================
> 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

View raw message