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

Andreas Schnitzerling edited comment on CASSANDRA-6283 at 11/28/13 11:47 AM:
-----------------------------------------------------------------------------

system.log after nodetool repair at neighbour (snipet):
{panel:title=system.log}
"FSWriteError ... Caused by: java.nio.file.FileSystemException: 
D:\Programme\cassandra\data\nieste\timezones\snapshots\dac98330-47bc-11e3-b167-eb1c24a59bb8\nieste-timezones-jb-8-Index.db:
 Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen 
Prozess verwendet wird."
{panel}
Means, cassandra didn't close the file after last access. This Win7-file-access 
issue seems to affect important areas in cassandra. Is there a plan to fix it? 
Thx.


was (Author: andie78):
system.log after nodetool repair at neighbour (snipet):

"FSWriteError ... Caused by: java.nio.file.FileSystemException: 
D:\Programme\cassandra\data\nieste\timezones\snapshots\dac98330-47bc-11e3-b167-eb1c24a59bb8\nieste-timezones-jb-8-Index.db:
 Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen 
Prozess verwendet wird."

Means, cassandra didn't close the file after last access. This Win7-file-access 
issue seems to affect important areas in cassandra. Is there a plan to fix it? 
Thx.

> Windows 7 data files keept open / can't be deleted after compaction.
> --------------------------------------------------------------------
>
>                 Key: CASSANDRA-6283
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6283
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: Windows 7 (32) / Java 1.7.0.45
>            Reporter: Andreas Schnitzerling
>            Priority: Critical
>              Labels: newbie, patch, test
>             Fix For: 2.0.4
>
>         Attachments: leakdetect.patch, screenshot-1.jpg, system.log
>
>
> Files cannot be deleted, patch CASSANDRA-5383 (Win7 deleting problem) doesn't 
> help on Win-7 on Cassandra 2.0.2. Even 2.1 Snapshot is not running. The cause 
> is: Opened file handles seem to be lost and not closed properly. Win 7 
> blames, that another process is still using the file (but its obviously 
> cassandra). Only restart of the server makes the files deleted. But after 
> heavy using (changes) of tables, there are about 24K files in the data folder 
> (instead of 35 after every restart) and Cassandra crashes. I experiminted and 
> I found out, that a finalizer fixes the problem. So after GC the files will 
> be deleted (not optimal, but working fine). It runs now 2 days continously 
> without problem. Possible fix/test:
> I wrote the following finalizer at the end of class 
> org.apache.cassandra.io.util.RandomAccessReader:
> {code:title=RandomAccessReader.java|borderStyle=solid}
> @Override
> protected void finalize() throws Throwable {
>       deallocate();
>       super.finalize();
> }
> {code}
> Can somebody test / develop / patch it? Thx.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to