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

Jonathan Ellis updated CASSANDRA-1790:
--------------------------------------

    Attachment: 1790.txt

patch to close file handle used for post-flush truncate, which will allow the 
rename to complete on Windows

> Booting fails on Windows 7/Windows 2003 because of a file rename failure
> ------------------------------------------------------------------------
>
>                 Key: CASSANDRA-1790
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1790
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7.0 rc 1
>         Environment: Windows 7 (64-bit), Windows 2003 (32-bit)
>            Reporter: Ramon Rockx
>            Priority: Blocker
>             Fix For: 0.7.0
>
>         Attachments: 1790.txt
>
>
> Cassandra 0.7.0 rc will not boot on Windows 7 and Windows 2003 because of a 
> file rename failure. The logging:
> {noformat}
>  INFO [FlushWriter:1] 2010-11-25 17:12:43,796 Memtable.java (line 155) 
> Writing memtable-locationi...@691789110(435 bytes, 8 operations)
> ERROR [FlushWriter:1] 2010-11-25 17:12:43,993 AbstractCassandraDaemon.java 
> (line 90) Fatal exception in thread Thread[FlushWriter:1,5,main]
> java.io.IOError: java.io.IOException: rename failed of 
> d:\cassandra\data\system\LocationInfo-e-1-Data.db
>       at 
> org.apache.cassandra.io.sstable.SSTableWriter.rename(SSTableWriter.java:214)
>       at 
> org.apache.cassandra.io.sstable.SSTableWriter.closeAndOpenReader(SSTableWriter.java:184)
>       at 
> org.apache.cassandra.io.sstable.SSTableWriter.closeAndOpenReader(SSTableWriter.java:167)
>       at 
> org.apache.cassandra.db.Memtable.writeSortedContents(Memtable.java:161)
>       at org.apache.cassandra.db.Memtable.access$000(Memtable.java:49)
>       at org.apache.cassandra.db.Memtable$1.runMayThrow(Memtable.java:174)
>       at 
> org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
>       at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>       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:619)
> Caused by: java.io.IOException: rename failed of 
> d:\cassandra\data\system\LocationInfo-e-1-Data.db
>       at 
> org.apache.cassandra.utils.FBUtilities.renameWithConfirm(FBUtilities.java:359)
>       at 
> org.apache.cassandra.io.sstable.SSTableWriter.rename(SSTableWriter.java:210)
>       ... 12 more
>  INFO [main] 2010-11-29 09:16:36,219 AbstractCassandraDaemon.java (line 73) 
> Heap size: 1067253760/1067253760
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to