cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mck SembWever (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-2598) incremental_backups and snapshot_before_compaction duplicate hard links
Date Tue, 03 May 2011 20:21:03 GMT
incremental_backups and snapshot_before_compaction duplicate hard links
-----------------------------------------------------------------------

                 Key: CASSANDRA-2598
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2598
             Project: Cassandra
          Issue Type: Bug
          Components: Core
    Affects Versions: 0.8 beta 1
         Environment: linux & jna
            Reporter: Mck SembWever


See discussion @ http://thread.gmane.org/gmane.comp.db.cassandra.user/15933/

Enabling both incremental_backups and snapshot_before_compaction leads to the same hard links
trying to created.

This leads to a stacktrace like 

java.io.IOError: java.io.IOException: Unable to create hard link from
/cassandra-data/<keyspace>/<cf>-f-3875-Data.db
to
/cassandra-data/<keyspace>/snapshots/compact-<cf>/<cf>-f-3875-Data.db
(errno 17)
	at org.apache.cassandra.db.ColumnFamilyStore.snapshotWithoutFlush(ColumnFamilyStore.java:1629)
	at org.apache.cassandra.db.ColumnFamilyStore.snapshot(ColumnFamilyStore.java:1654)
	at org.apache.cassandra.db.Table.snapshot(Table.java:198)
	at org.apache.cassandra.db.CompactionManager.doCompaction(CompactionManager.java:504)
	at org.apache.cassandra.db.CompactionManager$1.call(CompactionManager.java:146)
	at org.apache.cassandra.db.CompactionManager$1.call(CompactionManager.java:112)
	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 hard link from
/cassandra-data/<keyspace>/<cf>-f-3875-Data.db
to
/cassandra-data/<keyspace>/snapshots/compact-<cf>/<cf>-f-3875-Data.db
(errno 17)
	at org.apache.cassandra.utils.CLibrary.createHardLink(CLibrary.java:155)
	at org.apache.cassandra.io.sstable.SSTableReader.createLinks(SSTableReader.java:713)
	at org.apache.cassandra.db.ColumnFamilyStore.snapshotWithoutFlush(ColumnFamilyStore.java:1622)
	... 10 more


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

Mime
View raw message