You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Steve Peters (JIRA)" <ji...@apache.org> on 2013/06/25 18:56:21 UTC
[jira] [Commented] (CASSANDRA-5591) Windows failure renaming LCS
json.
[ https://issues.apache.org/jira/browse/CASSANDRA-5591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13693156#comment-13693156 ]
Steve Peters commented on CASSANDRA-5591:
-----------------------------------------
Windows file systems behave at as if updates to the directory entries are done asynchronously. If you have a case where you are deleting a file then immediately creating or renaming a file with the same name as the deleted file, you can run errors randomly saying that you are trying to create or rename a file that already exists. Of course, when you open the directory to look at it everything will be fine since the OS will be caught up.
> Windows failure renaming LCS json.
> ----------------------------------
>
> Key: CASSANDRA-5591
> URL: https://issues.apache.org/jira/browse/CASSANDRA-5591
> Project: Cassandra
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.2.4
> Environment: Windows
> Reporter: Jeremiah Jordan
>
> Had someone report that on Windows, under load, the LCS json file sometimes fails to be renamed.
> {noformat}
> ERROR [CompactionExecutor:1] 2013-05-23 14:43:55,848 CassandraDaemon.java (line 174) Exception in thread Thread[CompactionExecutor:1,1,main]
> java.lang.RuntimeException: Failed to rename C:\development\tools\DataStax Community\data\data\zzz\zzz\zzz.json to C:\development\tools\DataStax Community\data\data\zzz\zzz\zzz-old.json
> at org.apache.cassandra.io.util.FileUtils.renameWithConfirm(FileUtils.java:133)
> at org.apache.cassandra.db.compaction.LeveledManifest.serialize(LeveledManifest.java:617)
> at org.apache.cassandra.db.compaction.LeveledManifest.promote(LeveledManifest.java:229)
> at org.apache.cassandra.db.compaction.LeveledCompactionStrategy.handleNotification(LeveledCompactionStrategy.java:155)
> at org.apache.cassandra.db.DataTracker.notifySSTablesChanged(DataTracker.java:410)
> at org.apache.cassandra.db.DataTracker.replaceCompactedSSTables(DataTracker.java:223)
> at org.apache.cassandra.db.ColumnFamilyStore.replaceCompactedSSTables(ColumnFamilyStore.java:991)
> at org.apache.cassandra.db.compaction.CompactionTask.runWith(CompactionTask.java:230)
> 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.executeInternal(CompactionTask.java:58)
> at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:60)
> at org.apache.cassandra.db.compaction.CompactionManager$BackgroundCompactionTask.run(CompactionManager.java:188)
> 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:895)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
> at java.lang.Thread.run(Thread.java:662)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira