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

log why a SSTable is being deleted

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.8.1
    • None
    • None

    Description

      ./src/java/org/apache/cassandra/io/sstable/SSTable.java: 147

      Has " logger.info("Deleted " + desc); ".

      This combined with the JVM not being able to delete files until a GC has run means that restarting a node usually prompts a flood of log messages like :

      "Deleted /mnt/var/cassandra/data/Digg/UserActivity-10658-Data.db"

      I believe that I am not the only operator who reads a log upon restart that says "I deleted your data files" and becomes concerned.

      Now, personally, I have read the code and understand the conditions under which these files are deleted and so no longer get frightened. For new operators and people who may feel less comfortable reading the code, specifying WHY the file has been deleted ("Deleted <filename> because it was obsolete and marked for deletion as a result of compaction.") seems likely to reduce blood pressure and operator stress levels.

      Attachments

        1. 2411.txt
          1 kB
          Jonathan Ellis

        Activity

          People

            jbellis Jonathan Ellis
            rcoli Robert Coli
            Jonathan Ellis
            Robert Coli
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: