You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Lex Lythius (JIRA)" <ji...@apache.org> on 2013/09/25 21:18:04 UTC

[jira] [Comment Edited] (CASSANDRA-6098) NullPointerException causing query timeout

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

Lex Lythius edited comment on CASSANDRA-6098 at 9/25/13 7:17 PM:
-----------------------------------------------------------------

This happens only when querying for some particular values on a secondary index. Cannot reproduce it querying by primary key.

Neither of the following did any good:
{noformat}
Restarting Cassandra
nodetool rebuild_index DB TABLE INDEX
nodetool invalidaterowcache
nodetool invalidatekeycache
nodetool cleanup
nodetool repair
{noformat}
                
      was (Author: lexlythius):
    This happens only when querying for some particular values on a secondary index. Cannot reproduce it querying by primary key.

Neither of the following did any good:
{noformat}
restarting cassandra
nodetool invalidaterowcache
nodetool invalidatekeycache
nodetool cleanup
nodetool repair
{noformat}
                  
> NullPointerException causing query timeout
> ------------------------------------------
>
>                 Key: CASSANDRA-6098
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6098
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: CQLSH 4.0.0
> Cassandra 2.0.0
> Oracle Java 1.7.0_40
> Ubuntu 12.04.3 x64
>            Reporter: Lex Lythius
>
> A common SELECT query could not be completed failing with.
> {noformat}
> Request did not complete within rpc_timeout.
> {noformat}
> output.log showed this:
> {noformat}
> ERROR 15:38:04,036 Exception in thread Thread[ReadStage:170,5,main]
> java.lang.RuntimeException: java.lang.NullPointerException
>         at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1867)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:724)
> Caused by: java.lang.NullPointerException
>         at org.apache.cassandra.db.index.composites.CompositesIndexOnRegular.isStale(CompositesIndexOnRegular.java:97)
>         at org.apache.cassandra.db.index.composites.CompositesSearcher$1.computeNext(CompositesSearcher.java:247)
>         at org.apache.cassandra.db.index.composites.CompositesSearcher$1.computeNext(CompositesSearcher.java:102)
>         at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143)
>         at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138)
>         at org.apache.cassandra.db.ColumnFamilyStore.filter(ColumnFamilyStore.java:1651)
>         at org.apache.cassandra.db.index.composites.CompositesSearcher.search(CompositesSearcher.java:50)
>         at org.apache.cassandra.db.index.SecondaryIndexManager.search(SecondaryIndexManager.java:525)
>         at org.apache.cassandra.db.ColumnFamilyStore.search(ColumnFamilyStore.java:1639)
>         at org.apache.cassandra.db.RangeSliceCommand.executeLocally(RangeSliceCommand.java:135)
>         at org.apache.cassandra.service.StorageProxy$LocalRangeSliceRunnable.runMayThrow(StorageProxy.java:1358)
>         at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1863)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira