Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-6671

NoSuchElementException in trunk

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.1 beta1
    • None
    • None
    • Normal

    Description

      When running cassandra-stress -o 10000000 from cassandra-1.2 against the latest trunk, I noticed this error in the system log:

      ERROR 01:13:11 Exception in thread Thread[MutationStage:68,5,main]
      java.lang.RuntimeException: java.util.NoSuchElementException
      	at org.apache.cassandra.service.StorageProxy$LocalMutationRunnable.run(StorageProxy.java:2063) ~[main/:na]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_40]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) ~[na:1.7.0_40]
      	at java.lang.Thread.run(Thread.java:724) ~[na:1.7.0_40]
      Caused by: java.util.NoSuchElementException: null
      	at java.util.concurrent.ConcurrentLinkedDeque.screenNullResult(ConcurrentLinkedDeque.java:812) ~[na:1.7.0_40]
      	at java.util.concurrent.ConcurrentLinkedDeque.getLast(ConcurrentLinkedDeque.java:963) ~[na:1.7.0_40]
      	at org.apache.cassandra.utils.concurrent.WaitQueue.signalAll(WaitQueue.java:122) ~[main/:na]
      	at org.apache.cassandra.utils.concurrent.OpOrder$Group.unlink(OpOrder.java:254) ~[main/:na]
      	at org.apache.cassandra.utils.concurrent.OpOrder$Group.finishOne(OpOrder.java:209) ~[main/:na]
      	at org.apache.cassandra.db.commitlog.CommitLogSegment$Allocation.markWritten(CommitLogSegment.java:581) ~[main/:na]
      	at org.apache.cassandra.db.commitlog.CommitLog.add(CommitLog.java:231) ~[main/:na]
      	at org.apache.cassandra.db.commitlog.CommitLog.add(CommitLog.java:193) ~[main/:na]
      	at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:349) ~[main/:na]
      	at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:328) ~[main/:na]
      	at org.apache.cassandra.db.Mutation.apply(Mutation.java:205) ~[main/:na]
      	at org.apache.cassandra.service.StorageProxy$7.runMayThrow(StorageProxy.java:997) ~[main/:na]
      	at org.apache.cassandra.service.StorageProxy$LocalMutationRunnable.run(StorageProxy.java:2059) ~[main/:na]
      	... 3 common frames omitted
      

      I'm not sure what the implications are.

      Attachments

        1. tmp.patch
          1.0 kB
          Benedict Elliott Smith

        Activity

          People

            benedict Benedict Elliott Smith
            thobbs Tom Hobbs
            Benedict Elliott Smith
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: