cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "PengtaoGeng (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-11304) Stack overflow when querying 2ndary index
Date Wed, 20 Apr 2016 07:31:25 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-11304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15249417#comment-15249417
] 

PengtaoGeng commented on CASSANDRA-11304:
-----------------------------------------

I'm using Cassandra version 3.0.5, just upgraded from 3.0.4 recently for this bug.
But after upgrade I find under the query speed of very low CPU utilization of 100%. 
Blow is the stack info:

"SharedPool-Worker-28" #205 daemon prio=5 os_prio=0 tid=0x00007f1610cc8780 nid=0xe7c0 runnable
[0x00007f0ed566f000]
   java.lang.Thread.State: RUNNABLE
    at org.apache.cassandra.utils.MurmurHash.hash3_x64_128(MurmurHash.java:191)
    at org.apache.cassandra.dht.Murmur3Partitioner.getHash(Murmur3Partitioner.java:181)
    at org.apache.cassandra.dht.Murmur3Partitioner.decorateKey(Murmur3Partitioner.java:53)
    at org.apache.cassandra.db.PartitionPosition$ForKey.get(PartitionPosition.java:49)
    at org.apache.cassandra.db.marshal.PartitionerDefinedOrder.compareCustom(PartitionerDefinedOrder.java:93)
    at org.apache.cassandra.db.marshal.AbstractType.compare(AbstractType.java:158)
    at org.apache.cassandra.db.ClusteringComparator.compareComponent(ClusteringComparator.java:166)
    at org.apache.cassandra.db.ClusteringComparator.compare(ClusteringComparator.java:137)
    at org.apache.cassandra.db.ClusteringComparator.compare(ClusteringComparator.java:126)
    at org.apache.cassandra.db.ClusteringComparator.compare(ClusteringComparator.java:44)
    at org.apache.cassandra.utils.MergeIterator$Candidate.compareTo(MergeIterator.java:378)
    at org.apache.cassandra.utils.MergeIterator$ManyToOne.replaceAndSink(MergeIterator.java:266)
    at org.apache.cassandra.utils.MergeIterator$ManyToOne.advance(MergeIterator.java:189)
    at org.apache.cassandra.utils.MergeIterator$ManyToOne.computeNext(MergeIterator.java:158)
    at org.apache.cassandra.utils.AbstractIterator.hasNext(AbstractIterator.java:47)
    at org.apache.cassandra.db.rows.UnfilteredRowIterators$UnfilteredRowMergeIterator.computeNext(UnfilteredRowIterators.java:428)
    at org.apache.cassandra.db.rows.UnfilteredRowIterators$UnfilteredRowMergeIterator.computeNext(UnfilteredRowIterators.java:288)
    at org.apache.cassandra.utils.AbstractIterator.hasNext(AbstractIterator.java:47)
    at org.apache.cassandra.db.transform.BaseRows.hasNext(BaseRows.java:108)
    at org.apache.cassandra.index.internal.composites.CompositesSearcher$1.prepareNext(CompositesSearcher.java:130)
    at org.apache.cassandra.index.internal.composites.CompositesSearcher$1.hasNext(CompositesSearcher.java:83)
    at org.apache.cassandra.db.transform.BasePartitions.hasNext(BasePartitions.java:72)
    at org.apache.cassandra.db.partitions.UnfilteredPartitionIterators$Serializer.serialize(UnfilteredPartitionIterators.java:295)
    at org.apache.cassandra.db.ReadResponse$LocalDataResponse.build(ReadResponse.java:134)
    at org.apache.cassandra.db.ReadResponse$LocalDataResponse.<init>(ReadResponse.java:127)
    at org.apache.cassandra.db.ReadResponse$LocalDataResponse.<init>(ReadResponse.java:123)
    at org.apache.cassandra.db.ReadResponse.createDataResponse(ReadResponse.java:65)
    at org.apache.cassandra.db.ReadCommand.createResponse(ReadCommand.java:289)
    at org.apache.cassandra.db.ReadCommandVerbHandler.doVerb(ReadCommandVerbHandler.java:47)
    at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:67)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at org.apache.cassandra.concurrent.AbstractLocalAwareExecutorService$FutureTask.run(AbstractLocalAwareExecutorService.java:164)
    at org.apache.cassandra.concurrent.AbstractLocalAwareExecutorService$LocalSessionFutureTask.run(AbstractLocalAwareExecutorService.java:136)
    at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105)
    at java.lang.Thread.run(Thread.java:745)

I find the busy running threads are all from "SharedPool-Worker".
They are all in "org.apache.cassandra.db.partitions.UnfilteredPartitionIterator#prepareNext"
or deeper than the method.

Is it a new bug?

> Stack overflow when querying 2ndary index
> -----------------------------------------
>
>                 Key: CASSANDRA-11304
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11304
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core, CQL
>         Environment: 3 Node cluster / Ubuntu 14.04 / Cassandra 3.0.3
>            Reporter: Job Tiel Groenestege
>            Assignee: Sam Tunnicliffe
>             Fix For: 3.0.5
>
>         Attachments: 11304-3.0.txt
>
>
> When reading data through a secondary index _select * from tableName where secIndexField
= 'foo'_  (from a Java application) I get the following stacktrace on all nodes; after the
query read fails. It happens repeatably when  I rerun the same query:
> {quote}
> WARN  [SharedPool-Worker-8] 2016-03-04 13:26:28,041 AbstractLocalAwareExecutorService.java:169
- Uncaught exception on thread Thread[SharedPool-Worker-8,5,main]: {}
> java.lang.StackOverflowError: null
>         at org.apache.cassandra.db.rows.BTreeRow$Builder.build(BTreeRow.java:653) ~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.db.rows.UnfilteredSerializer.deserializeRowBody(UnfilteredSerializer.java:436)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.db.UnfilteredDeserializer$CurrentDeserializer.readNext(UnfilteredDeserializer.java:211)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.db.columniterator.SSTableIterator$ForwardIndexedReader.computeNext(SSTableIterator.java:266)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.db.columniterator.SSTableIterator$ForwardReader.hasNextInternal(SSTableIterator.java:153)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.db.columniterator.AbstractSSTableIterator$Reader.hasNext(AbstractSSTableIterator.java:340)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.db.columniterator.AbstractSSTableIterator.hasNext(AbstractSSTableIterator.java:219)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.db.columniterator.SSTableIterator.hasNext(SSTableIterator.java:32)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.utils.MergeIterator$Candidate.advance(MergeIterator.java:369)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.utils.MergeIterator$ManyToOne.advance(MergeIterator.java:189)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.utils.MergeIterator$ManyToOne.computeNext(MergeIterator.java:158)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.utils.AbstractIterator.hasNext(AbstractIterator.java:47)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.db.rows.UnfilteredRowIterators$UnfilteredRowMergeIterator.computeNext(UnfilteredRowIterators.java:428)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.db.rows.UnfilteredRowIterators$UnfilteredRowMergeIterator.computeNext(UnfilteredRowIterators.java:288)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.utils.AbstractIterator.hasNext(AbstractIterator.java:47)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.db.transform.BaseRows.hasNext(BaseRows.java:108) ~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.index.internal.composites.CompositesSearcher$1.prepareNext(CompositesSearcher.java:128)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.index.internal.composites.CompositesSearcher$1.prepareNext(CompositesSearcher.java:133)
~[apache-cassandra-3.0.3.jar:3.0.3]
>         at org.apache.cassandra.index.internal.composites.CompositesSearcher$1.prepareNext(CompositesSearcher.java:133)
~[apache-cassandra-3.0.3.jar:3.0.3]
> {quote}



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

Mime
View raw message