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

some unit tests should generate files in the tmp directory

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Triage Needed
    • Normal
    • Resolution: Unresolved
    • 5.x
    • Test/unit
    • None
    • All
    • None

    Description

      I run "ant test" to fire the whole test suit cases in my local machine, and found some UTs had generated files in current directory, otherwise the tmp directory.

       

      [root@vm-24-5-centos cassandra]# git status
      # audit/
      # compaction.log
      # import_cql_test_keyspace_table_testcopyonlythoserowsthatmatchvectortyp_04.err
      

       

      These problematic UTs are

       

      ant testsome -Dtest.name=org.apache.cassandra.service.StorageServiceServerTest -Dtest.methods=testAuditLogEnableLoggerNotFound
      ant testsome -Dtest.name=org.apache.cassandra.service.StorageServiceServerTest -Dtest.methods=testAuditLogEnableLoggerTransitions
      ant testsome -Dtest.name=org.apache.cassandra.tools.CompactionStressTest -Dtest.methods=testWriteAndCompact
      ant testsome -Dtest.name=org.apache.cassandra.tools.cqlsh.CqlshTest -Dtest.methods=testCopyOnlyThoseRowsThatMatchVectorTypeSize
      

       

      The patch is aimed to generate files in the tmp directory to fix it.

      Attachments

        Issue Links

          Activity

            People

              maoling Ling Mao
              maoling Ling Mao
              Ling Mao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m