cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Дмитрий Шохов <sho...@gmail.com>
Subject Re: java.lang.StackOverflowError with big IN list
Date Fri, 10 Jan 2014 15:18:33 GMT
https://issues.apache.org/jira/browse/CASSANDRA-6567

Thank you!


2014/1/10 Benedict Elliott Smith <belliottsmith@datastax.com>

> It must be a very large IN clause, which is probably not advisable. But it
> shouldn't cause this error, and since it's an easy fix to prevent it, if
> you file a JIRA I'll post a patch.
>
>
> On 10 January 2014 13:08, Дмитрий Шохов <shohou@gmail.com> wrote:
>
>> Hello I'm getting stack overflow when running prepared queries with IN
>> parameter and binding big list in it. Is it known limitation and I must
>> implement manual paging or change logic to get around this, or is it some
>> bug maybe...
>>
>> java.lang.StackOverflowError
>>         at
>> org.apache.cassandra.utils.FastByteComparisons$LexicographicalComparerHolder$UnsafeComparer.compareTo(FastByteComparisons.java:110)
>>         at
>> org.apache.cassandra.utils.FastByteComparisons.compareTo(FastByteComparisons.java:41)
>>         at
>> org.apache.cassandra.utils.FBUtilities.compareUnsigned(FBUtilities.java:216)
>>         at
>> org.apache.cassandra.utils.ByteBufferUtil.compareUnsigned(ByteBufferUtil.java:89)
>>         at
>> org.apache.cassandra.db.marshal.LongType.compareLongs(LongType.java:54)
>>         at
>> org.apache.cassandra.db.marshal.LongType.compare(LongType.java:36)
>>         at
>> org.apache.cassandra.db.marshal.LongType.compare(LongType.java:28)
>>         at
>> org.apache.cassandra.db.ArrayBackedSortedColumns.binarySearch(ArrayBackedSortedColumns.java:170)
>>         at
>> org.apache.cassandra.db.ArrayBackedSortedColumns.binarySearch(ArrayBackedSortedColumns.java:152)
>>         at
>> org.apache.cassandra.db.ArrayBackedSortedColumns.getColumn(ArrayBackedSortedColumns.java:89)
>>         at
>> org.apache.cassandra.cql3.statements.SelectStatement$1$1.computeNext(SelectStatement.java:825)
>>         at
>> org.apache.cassandra.cql3.statements.SelectStatement$1$1.computeNext(SelectStatement.java:826)
>>         at
>> org.apache.cassandra.cql3.statements.SelectStatement$1$1.computeNext(SelectStatement.java:826)
>>         at
>> org.apache.cassandra.cql3.statements.SelectStatement$1$1.computeNext(SelectStatement.java:826)
>>         at .... many more same line stack elements
>>
>> Cassandra 2.0.4 Java driver 2.0 rc2
>>
>
>

Mime
View raw message