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

StringTokenizer throws NoSuchElementException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.4
    • None
    • None
    • Low

    Description

      ---- cf format ----
      <ColumnFamily CompareWith="UTF8Type" Name="Users" />
      'bar@baz.com':

      { email: 'bar@baz.com', person_id: '789', send_dates_2009-09-30: '2245', send_dates_2009-10-01: '2246', }

      ,
      ---- Relevant log lines ----
      DEBUG - insertBlocking writing key schmidtcaroline71@yahoo.com to 3489502@[127.0.0.1:7000]
      DEBUG - Applying RowMutation(table='Mailings', key='schmidtcaroline71@yahoo.com', modifications=[ColumnFamily(Users [email,person_id,send_dates_2009-09-30,])])
      DEBUG - RowMutation(table='Mailings', key='schmidtcaroline71@yahoo.com', modifications=[ColumnFamily(User/Users-46-Data.db : 914432
      DEBUG - index size for bloom filter calc for file : /nfsassets/mailings/db_tests/cassandra/data/Mailings/Users-48-Data.db : 949632
      DEBUG - index size for bloom filter calc for file : /nfsassets/mailings/db_tests/cassandra/data/Mailings/Users-50-Data.db : 984832
      DEBUG - index size for bloom filter calc for file : /nfsassets/mailings/db_tests/cassandra/data/Mailings/Users-52-Data.db : 1020032
      DEBUG - index size for bloom filter calc for file : /nfsassets/mailings/db_tests/cassandra/data/Mailings/Users-54-Data.db : 1055232
      DEBUG - index size for bloom filter calc for file : /nfsassets/mailings/db_tests/cassandra/data/Mailings/Users-56-Data.db : 1090432
      DEBUG - index size for bloom filter calc for file : /nfsassets/mailings/db_tests/cassandra/data/Mailings/Users-58-Data.db : 1125632
      DEBUG - index size for bloom filter calc for file : /nfsassets/mailings/db_tests/cassandra/data/Mailings/Users-60-Data.db : 1160832
      DEBUG - index size for bloom filter calc for file : /nfsassets/mailings/db_tests/cassandra/data/Mailings/Users-62-Data.db : 1196032
      DEBUG - index size for bloom filter calc for file : /nfsassets/mailings/db_tests/cassandra/data/Mailings/Users-64-Data.db : 1231232
      DEBUG - Expected bloom filter size : 1231232
      ERROR - Error in executor futuretask
      java.util.concurrent.ExecutionException: java.util.NoSuchElementException
      at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
      at java.util.concurrent.FutureTask.get(FutureTask.java:111)
      at org.apache.cassandra.concurrent.DebuggableThreadPoolExecutor.logFutureExceptions(DebuggableThreadPoolExecutor.java:95)
      at org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor.afterExecute(DebuggableScheduledThreadPoolExecutor.java:50)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1118)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:636)
      Caused by: java.util.NoSuchElementException
      at java.util.StringTokenizer.nextToken(StringTokenizer.java:349)
      at org.apache.cassandra.dht.RandomPartitioner$1.compare(RandomPartitioner.java:56)
      at org.apache.cassandra.dht.RandomPartitioner$1.compare(RandomPartitioner.java:40)
      at org.apache.cassandra.io.FileStruct.compareTo(FileStruct.java:80)
      at org.apache.cassandra.io.FileStruct.compareTo(FileStruct.java:33)
      at java.util.PriorityQueue.siftUpComparable(PriorityQueue.java:599)
      at java.util.PriorityQueue.siftUp(PriorityQueue.java:591)
      at java.util.PriorityQueue.offer(PriorityQueue.java:291)
      at java.util.PriorityQueue.add(PriorityQueue.java:268)
      at org.apache.cassandra.db.ColumnFamilyStore.doFileCompaction(ColumnFamilyStore.java:1113)
      at org.apache.cassandra.db.ColumnFamilyStore.doCompaction(ColumnFamilyStore.java:689)
      at org.apache.cassandra.db.MinorCompactionManager$1.call(MinorCompactionManager.java:165)
      at org.apache.cassandra.db.MinorCompactionManager$1.call(MinorCompactionManager.java:162)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:165)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      ... 2 more

      Attachments

        1. 486.patch
          4 kB
          Jonathan Ellis
        2. master.txt
          0.1 kB
          Eric Lubow
        3. part_cas_load.pl
          5 kB
          Eric Lubow

        Activity

          People

            jbellis Jonathan Ellis
            elubow Eric Lubow
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: