Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-1509

CassandraServiceDataCleaner doesn't remove subdirectories properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.7 beta 2
    • None
    • None
    • Low

    Description

      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.

      Attachments

        1. patch-delete-recursive.txt
          0.8 kB
          B. Todd Burruss

        Activity

          People

            btoddb B. Todd Burruss
            btoddb B. Todd Burruss
            B. Todd Burruss
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: