Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
Windows 7 (32) / Java 1.7.0.45
-
Normal
Description
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:
@Override protected void finalize() throws Throwable { deallocate(); super.finalize(); }
Can somebody test / develop / patch it? Thx.
Attachments
Attachments
Issue Links
- is duplicated by
-
CASSANDRA-7080 Enhance robustness of snapshot deletions
- Resolved
- is related to
-
CASSANDRA-5383 Windows 7 deleting/renaming files problem
- Resolved
-
CASSANDRA-4050 Rewrite RandomAccessReader to use FileChannel / nio to address Windows file access violations
- Resolved
-
CASSANDRA-5950 Make snapshot/sequential repair the default
- Resolved
-
CASSANDRA-7541 Windows: IOException when repairing a range of tokens
- Resolved
- relates to
-
CASSANDRA-3613 Commit Log Test broken on Windows
- Resolved