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

FileNotFoundException after create-drop-create keyspace

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Won't Fix
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Cassandra trunk (565c576)

    • Severity:
      Normal

      Description

       INFO [CompactionExecutor:28] 2012-10-24 14:32:22,756 CompactionTask.java (line 116) Compacting [SSTableReader(path='/var/lib/cassandra/data/Twissandra/Tweet/Twissandra-Tweet-ia-1-Data.db'), SSTableReader(path='/var/lib/cassandra/data/Twissandra/Tweet/Twissandra-Tweet-ia-6-Data.db'), SSTableReader(path='/var/lib/cassandra/data/Twissandra/Tweet/Twissandra-Tweet-ia-4-Data.db'), SSTableReader(path='/var/lib/cassandra/data/Twissandra/Tweet/Twissandra-Tweet-ia-3-Data.db'), SSTableReader(path='/var/lib/cassandra/data/Twissandra/Tweet/Twissandra-Tweet-ia-2-Data.db')]
      ERROR [CompactionExecutor:28] 2012-10-24 14:32:22,758 CassandraDaemon.java (line 132) Exception in thread Thread[CompactionExecutor:28,1,main]
      java.lang.RuntimeException: java.io.FileNotFoundException: /var/lib/cassandra/data/Twissandra/Tweet/Twissandra-Tweet-ia-1-Data.db (No such file or directory)
      	at org.apache.cassandra.io.compress.CompressedRandomAccessReader.open(CompressedRandomAccessReader.java:51)
      	at org.apache.cassandra.io.sstable.SSTableReader.openDataReader(SSTableReader.java:1094)
      	at org.apache.cassandra.io.sstable.SSTableScanner.<init>(SSTableScanner.java:51)
      	at org.apache.cassandra.io.sstable.SSTableReader.getDirectScanner(SSTableReader.java:937)
      	at org.apache.cassandra.io.sstable.SSTableReader.getDirectScanner(SSTableReader.java:949)
      	at org.apache.cassandra.db.compaction.AbstractCompactionStrategy.getScanners(AbstractCompactionStrategy.java:127)
      	at org.apache.cassandra.db.compaction.AbstractCompactionStrategy.getScanners(AbstractCompactionStrategy.java:133)
      	at org.apache.cassandra.db.compaction.CompactionTask.runWith(CompactionTask.java:128)
      	at org.apache.cassandra.io.util.DiskAwareRunnable.runMayThrow(DiskAwareRunnable.java:48)
      	at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
      	at org.apache.cassandra.db.compaction.CompactionTask.execute(CompactionTask.java:69)
      	at org.apache.cassandra.db.compaction.CompactionManager$BackgroundCompactionTask.run(CompactionManager.java:179)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:680)
      Caused by: java.io.FileNotFoundException: /var/lib/cassandra/data/Twissandra/Tweet/Twissandra-Tweet-ia-1-Data.db (No such file or directory)
      	at java.io.RandomAccessFile.open(Native Method)
      	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:216)
      	at org.apache.cassandra.io.util.RandomAccessReader.<init>(RandomAccessReader.java:64)
      	at org.apache.cassandra.io.compress.CompressedRandomAccessReader.<init>(CompressedRandomAccessReader.java:70)
      	at org.apache.cassandra.io.compress.CompressedRandomAccessReader.open(CompressedRandomAccessReader.java:47)
      	... 17 more
      

      This error has been happening consistently using a modified version of the twissandra project. We have a script that loads in a bunch of tweet data. The error happens when I drop the keyspace, then recreate it and the columnfamilies, and rerun the script to load the data again.

        Attachments

        1. system.log
          89 kB
          Tyler Patterson

          Activity

            People

            • Assignee:
              xedin Pavel Yaskevich
              Reporter:
              tpatterson Tyler Patterson
              Authors:
              Pavel Yaskevich
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: