[ 
https://issues.apache.org/jira/browse/CASSANDRA-7712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14365859#comment-14365859
 ] 

Michael Shuler edited comment on CASSANDRA-7712 at 3/17/15 7:53 PM:
--------------------------------------------------------------------

Attached 7712_workaround.txt patch to set a {{tmp.dir}} property and use that 
as a {{jvmarg}} in testlist.  Tested this with and without passing in the 
option with no problems - -the jvm also created my custom tmp.dir for me- (I 
must have done a run with my tmp.dir already created - we do need to mkdir it). 
 This workaround provides us the ability to set the temporary data dir within 
our git workspace, and since we are using {{git clean -xdf}} at the beginning 
of every unit test run, this data will no longer accumulate.


was (Author: mshuler):
Attached 7712_workaround.txt patch to set a {{tmp.dir}} property and use that 
as a {{jvmarg}} in testlist.  Tested this with and without passing in the 
option with no problems - the jvm also created my custom tmp.dir for me.  This 
workaround provides us the ability to set the temporary data dir within our git 
workspace, and since we are using {{git clean -xdf}} at the beginning of every 
unit test run, this data will no longer accumulate.

> temporary files need to be cleaned by unit tests
> ------------------------------------------------
>
>                 Key: CASSANDRA-7712
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7712
>             Project: Cassandra
>          Issue Type: Test
>          Components: Tests
>            Reporter: Michael Shuler
>            Assignee: Michael Shuler
>            Priority: Minor
>              Labels: bootcamp, lhf
>             Fix For: 2.1.4, 2.0.14
>
>         Attachments: 7712-hung-CliTest_system.log.gz, 7712-v2.txt, 
> 7712-v3.txt, 7712_workaround.txt, CASSANDRA-7712_apache_cassandra_2.0.txt
>
>
> 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:
> {noformat}
> # 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
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to