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

temporary files need to be cleaned by unit tests

    XMLWordPrintableJSON

Details

    Description

      There are many unit test temporary files left behind after test runs. In the case of CI servers, I have seen >70,000 files accumulate in /tmp over a period of time. Each unit test should make an effort to remove its temporary files when the test is completed.

      My current unit test cleanup block:

      # clean up after unit tests..
      rm -rf  /tmp/140*-0 /tmp/CFWith* /tmp/Counter1* /tmp/DescriptorTest* /tmp/Keyspace1* \
              /tmp/KeyStreamingTransferTestSpace* /tmp/SSTableExportTest* /tmp/SSTableImportTest* \
              /tmp/Standard1* /tmp/Statistics.db* /tmp/StreamingTransferTest* /tmp/ValuesWithQuotes* \
              /tmp/cassandra* /tmp/jna-* /tmp/ks-cf-ib-1-* /tmp/lengthtest* /tmp/liblz4-java*.so /tmp/readtest* \
              /tmp/set_length_during_read_mode* /tmp/set_negative_length* /tmp/snappy-*.so
      

      Attachments

        1. CASSANDRA-7712_apache_cassandra_2.0.txt
          5 kB
          Sravan Ananthula
        2. 7712-v2.txt
          2 kB
          Brandon Williams
        3. 7712-hung-CliTest_system.log.gz
          140 kB
          Michael Shuler
        4. 7712-v3.txt
          2 kB
          Brandon Williams
        5. 7712_workaround.txt
          0.8 kB
          Michael Shuler

        Issue Links

          Activity

            People

              mshuler Michael Shuler
              mshuler Michael Shuler
              Michael Shuler
              Brandon Williams
              Michael Shuler Michael Shuler
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: