cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-2927) Error truncating a table that is being loaded into
Date Thu, 21 Jul 2011 02:45:57 GMT

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

Jonathan Ellis commented on CASSANDRA-2927:
-------------------------------------------

Unfortunately, Java's createNewFile just gives us a boolean success flag, if something goes
wrong we don't have much insight:

{code}
            if (!new File(descriptor.filenameFor(Component.COMPACTED_MARKER)).createNewFile())
                throw new IOException("Unable to create compaction marker");
{code}

My guess is something environmental, such as maxing out your open file handles.

> Error truncating a table that is being loaded into
> --------------------------------------------------
>
>                 Key: CASSANDRA-2927
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2927
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>         Environment: * tip of 0.8 trunk as of July 19th
>            Reporter: Cathy Daw
>            Priority: Minor
>
> * In one window, run a large stress job - 10000 rows / 1000 columns
> * In a second window, open the cli and truncate the table being loaded
> * See the following exception on all nodes
>  
> {code}
> ERROR 01:14:28,763 Fatal exception in thread Thread[CompactionExecutor:6,1,main]
> java.io.IOError: java.io.IOException: Unable to create compaction marker
> 	at org.apache.cassandra.io.sstable.SSTableReader.markCompacted(SSTableReader.java:638)
> 	at org.apache.cassandra.db.DataTracker.removeOldSSTablesSize(DataTracker.java:280)
> 	at org.apache.cassandra.db.DataTracker.replace(DataTracker.java:253)
> 	at org.apache.cassandra.db.DataTracker.replaceCompactedSSTables(DataTracker.java:214)
> 	at org.apache.cassandra.db.ColumnFamilyStore.replaceCompactedSSTables(ColumnFamilyStore.java:979)
> 	at org.apache.cassandra.db.compaction.CompactionManager.doCompactionWithoutSizeEstimation(CompactionManager.java:594)
> 	at org.apache.cassandra.db.compaction.CompactionManager.doCompaction(CompactionManager.java:505)
> 	at org.apache.cassandra.db.compaction.CompactionManager$1.call(CompactionManager.java:140)
> 	at org.apache.cassandra.db.compaction.CompactionManager$1.call(CompactionManager.java:106)
> 	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:662)
> Caused by: java.io.IOException: Unable to create compaction marker
> 	at org.apache.cassandra.io.sstable.SSTableReader.markCompacted(SSTableReader.java:634)
> 	... 13 more
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message