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] [Updated] (CASSANDRA-2769) Cannot Create Duplicate Compaction Marker
Date Tue, 14 Jun 2011 20:44:47 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-2769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jonathan Ellis updated CASSANDRA-2769:
--------------------------------------

    Description: 
Concurrent compaction can trigger the following exception when two threads compact the same
sstable. DataTracker attempts to prevent this but apparently not successfully.

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:321)
	at org.apache.cassandra.db.DataTracker.replace(DataTracker.java:294)
	at org.apache.cassandra.db.DataTracker.replaceCompactedSSTables(DataTracker.java:255)
	at org.apache.cassandra.db.ColumnFamilyStore.replaceCompactedSSTables(ColumnFamilyStore.java:932)
	at org.apache.cassandra.db.compaction.CompactionTask.execute(CompactionTask.java:173)
	at org.apache.cassandra.db.compaction.CompactionManager$1.call(CompactionManager.java:119)
	at org.apache.cassandra.db.compaction.CompactionManager$1.call(CompactionManager.java:102)
	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.IOException: Unable to create compaction marker
	at org.apache.cassandra.io.sstable.SSTableReader.markCompacted(SSTableReader.java:634)
	... 12 more

  was:
Concurrent compaction can trigger the following exception: I'll attach a patch to fix this.

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:321)
	at org.apache.cassandra.db.DataTracker.replace(DataTracker.java:294)
	at org.apache.cassandra.db.DataTracker.replaceCompactedSSTables(DataTracker.java:255)
	at org.apache.cassandra.db.ColumnFamilyStore.replaceCompactedSSTables(ColumnFamilyStore.java:932)
	at org.apache.cassandra.db.compaction.CompactionTask.execute(CompactionTask.java:173)
	at org.apache.cassandra.db.compaction.CompactionManager$1.call(CompactionManager.java:119)
	at org.apache.cassandra.db.compaction.CompactionManager$1.call(CompactionManager.java:102)
	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.IOException: Unable to create compaction marker
	at org.apache.cassandra.io.sstable.SSTableReader.markCompacted(SSTableReader.java:634)
	... 12 more

       Assignee: Sylvain Lebresne

> Cannot Create Duplicate Compaction Marker
> -----------------------------------------
>
>                 Key: CASSANDRA-2769
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2769
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Benjamin Coverston
>            Assignee: Sylvain Lebresne
>
> Concurrent compaction can trigger the following exception when two threads compact the
same sstable. DataTracker attempts to prevent this but apparently not successfully.
> 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:321)
> 	at org.apache.cassandra.db.DataTracker.replace(DataTracker.java:294)
> 	at org.apache.cassandra.db.DataTracker.replaceCompactedSSTables(DataTracker.java:255)
> 	at org.apache.cassandra.db.ColumnFamilyStore.replaceCompactedSSTables(ColumnFamilyStore.java:932)
> 	at org.apache.cassandra.db.compaction.CompactionTask.execute(CompactionTask.java:173)
> 	at org.apache.cassandra.db.compaction.CompactionManager$1.call(CompactionManager.java:119)
> 	at org.apache.cassandra.db.compaction.CompactionManager$1.call(CompactionManager.java:102)
> 	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.IOException: Unable to create compaction marker
> 	at org.apache.cassandra.io.sstable.SSTableReader.markCompacted(SSTableReader.java:634)
> 	... 12 more

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

        

Mime
View raw message