[ 
https://issues.apache.org/jira/browse/PIG-1391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thejas M Nair updated PIG-1391:
-------------------------------

    Attachment: PIG-1391.06.patch

Patch for 0.6 branch. It reduces the number of temp files being left behind 
from around 1767 to 135 .  It changes only contents of test/ dir. 

As the patch does not apply to trunk, I have manually run the unit tests and 
test-patch . All unit tests succeeded, pasting result of test-patch - 
     [exec] +1 overall.
     [exec]
     [exec]     +1 @author.  The patch does not contain any @author tags.
     [exec]
     [exec]     +1 tests included.  The patch appears to include 208 new or 
modified tests.
     [exec]
     [exec]     +1 javadoc.  The javadoc tool did not generate any warning 
messages.
     [exec]
     [exec]     +1 javac.  The applied patch does not increase the total number 
of javac compiler warnings.
     [exec]
     [exec]     +1 findbugs.  The patch does not introduce any new Findbugs 
warnings.
     [exec]
     [exec]     +1 release audit.  The applied patch does not increase the 
total number of release audit warnings.


> pig unit tests leave behind files in temp directory because MiniCluster files 
> don't get deleted
> -----------------------------------------------------------------------------------------------
>
>                 Key: PIG-1391
>                 URL: https://issues.apache.org/jira/browse/PIG-1391
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.7.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>             Fix For: 0.7.0
>
>         Attachments: minicluster.patch, PIG-1391.06.patch
>
>
> Pig unit test runs leave behind files in temp dir (/tmp) and there are too 
> many files in the directory over time.
> Most of the files are left behind by MiniCluster . It closes/shutsdown 
> MiniDFSCluster, MiniMRCluster and the FileSystem that it has created when the 
> constructor is called, only in finalize(). And java does not guarantee that 
> finalize() will be called. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to