cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "B. Todd Burruss (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CASSANDRA-1509) CassandraServiceDataCleaner doesn't remove subdirectories properly
Date Thu, 16 Sep 2010 03:08:32 GMT

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

B. Todd Burruss updated CASSANDRA-1509:
---------------------------------------

    Attachment: patch-delete-recursive.txt

patch to change to a recursive delete which will remove directories and all their files

> CassandraServiceDataCleaner doesn't remove subdirectories properly
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-1509
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1509
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.7 beta 1
>            Reporter: B. Todd Burruss
>         Attachments: patch-delete-recursive.txt
>
>
> CassandraServiceDataCleaner.cleanDir assumes all files in the directory are normal files,
not directories.  Suggested fix is to change FileUtils.delete(dirFile.listFiles()) to FileUtils.deleteRecursive(f)
to remove recursively which will delete all data files.

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


Mime
View raw message