cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Jefferson (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-11621) Stack Overflow inserting value with many columns
Date Wed, 20 Apr 2016 15:08:25 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-11621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Jefferson updated CASSANDRA-11621:
-----------------------------------------
    Description: 
I am using CQL to insert into a table that has ~4000 columns

    TABLE_DEFINITION = "
      id uuid,
      "dimension_n" for n in _.range(N_DIMENSIONS)
      ETAG timeuuid,
      PRIMARY KEY (id)
    "

I am using the node.js library from Datastax to execute CQL. This creates a prepared statement
and then uses it to perform an insert. It works fine on C* 2.1 but after upgrading to C* 2.2.5
I get the stack overflow below.

I know enough Java to think that recursing an iterator is bad form and should be easy to fix.

ERROR 14:59:01 Unexpected exception during request; channel = [id: 0xaac42a5d, /10.0.7.182:58736
=> /10.0.0.87:9042]
java.lang.StackOverflowError: null
	at com.google.common.base.Preconditions.checkPositionIndex(Preconditions.java:339) ~[guava-16.0.jar:na]
	at com.google.common.collect.AbstractIndexedListIterator.<init>(AbstractIndexedListIterator.java:69)
~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$11.<init>(Iterators.java:1048) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators.forArray(Iterators.java:1048) ~[guava-16.0.jar:na]
	at com.google.common.collect.RegularImmutableList.listIterator(RegularImmutableList.java:106)
~[guava-16.0.jar:na]
	at com.google.common.collect.ImmutableList.listIterator(ImmutableList.java:344) ~[guava-16.0.jar:na]
	at com.google.common.collect.ImmutableList.iterator(ImmutableList.java:340) ~[guava-16.0.jar:na]
	at com.google.common.collect.ImmutableList.iterator(ImmutableList.java:61) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterables.iterators(Iterables.java:504) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterables.access$100(Iterables.java:60) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterables$2.iterator(Iterables.java:494) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterables$3.transform(Iterables.java:508) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterables$3.transform(Iterables.java:505) ~[guava-16.0.jar:na]
	at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:543) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]

  was:
I am using CQL to insert into a table that has ~4000 columns

    TABLE_DEFINITION = "
      id uuid,
      "dimension_n" for n in _.range(N_DIMENSIONS)
      ETAG timeuuid,
      PRIMARY KEY (id)
    "

I am using the node.js library from Datastax to execute CQL. This creates a prepared statement
and then uses it to perform an insert. It works fine on C* 2.1 but after upgrading to 2.2.5
I get the stack overflow below.

I know enough Java to think that recursing an iterator is bad form and should be easy to fix.

ERROR 14:59:01 Unexpected exception during request; channel = [id: 0xaac42a5d, /10.0.7.182:58736
=> /10.0.0.87:9042]
java.lang.StackOverflowError: null
	at com.google.common.base.Preconditions.checkPositionIndex(Preconditions.java:339) ~[guava-16.0.jar:na]
	at com.google.common.collect.AbstractIndexedListIterator.<init>(AbstractIndexedListIterator.java:69)
~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$11.<init>(Iterators.java:1048) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators.forArray(Iterators.java:1048) ~[guava-16.0.jar:na]
	at com.google.common.collect.RegularImmutableList.listIterator(RegularImmutableList.java:106)
~[guava-16.0.jar:na]
	at com.google.common.collect.ImmutableList.listIterator(ImmutableList.java:344) ~[guava-16.0.jar:na]
	at com.google.common.collect.ImmutableList.iterator(ImmutableList.java:340) ~[guava-16.0.jar:na]
	at com.google.common.collect.ImmutableList.iterator(ImmutableList.java:61) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterables.iterators(Iterables.java:504) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterables.access$100(Iterables.java:60) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterables$2.iterator(Iterables.java:494) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterables$3.transform(Iterables.java:508) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterables$3.transform(Iterables.java:505) ~[guava-16.0.jar:na]
	at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:543) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]


> Stack Overflow inserting value with many columns
> ------------------------------------------------
>
>                 Key: CASSANDRA-11621
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11621
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: CQL 3
> C* 2.2.5
>            Reporter: Andrew Jefferson
>
> I am using CQL to insert into a table that has ~4000 columns
>     TABLE_DEFINITION = "
>       id uuid,
>       "dimension_n" for n in _.range(N_DIMENSIONS)
>       ETAG timeuuid,
>       PRIMARY KEY (id)
>     "
> I am using the node.js library from Datastax to execute CQL. This creates a prepared
statement and then uses it to perform an insert. It works fine on C* 2.1 but after upgrading
to C* 2.2.5 I get the stack overflow below.
> I know enough Java to think that recursing an iterator is bad form and should be easy
to fix.
> ERROR 14:59:01 Unexpected exception during request; channel = [id: 0xaac42a5d, /10.0.7.182:58736
=> /10.0.0.87:9042]
> java.lang.StackOverflowError: null
> 	at com.google.common.base.Preconditions.checkPositionIndex(Preconditions.java:339) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.AbstractIndexedListIterator.<init>(AbstractIndexedListIterator.java:69)
~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$11.<init>(Iterators.java:1048) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators.forArray(Iterators.java:1048) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.RegularImmutableList.listIterator(RegularImmutableList.java:106)
~[guava-16.0.jar:na]
> 	at com.google.common.collect.ImmutableList.listIterator(ImmutableList.java:344) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.ImmutableList.iterator(ImmutableList.java:340) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.ImmutableList.iterator(ImmutableList.java:61) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterables.iterators(Iterables.java:504) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterables.access$100(Iterables.java:60) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterables$2.iterator(Iterables.java:494) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterables$3.transform(Iterables.java:508) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterables$3.transform(Iterables.java:505) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:543) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]
> 	at com.google.common.collect.Iterators$5.hasNext(Iterators.java:542) ~[guava-16.0.jar:na]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message