[
https://issues.apache.org/jira/browse/PIG-3169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13582770#comment-13582770
]
Mark Wagner commented on PIG-3169:
----------------------------------
Ah, you are absolutely correct. I didn't realize generateURI copied the file
over.
Towards a fix: Like you said, it doesn't seem right to require unit tests (and
other classes) to worry about having their temporary files deleted, especially
when it's indirect like in this case. PigServer should probably do its own
cleanup of intermediate data after executions rather than removing all
temporary files. Does anybody have any input on this?
> Remove temporary files that are not needed
> ------------------------------------------
>
> Key: PIG-3169
> URL: https://issues.apache.org/jira/browse/PIG-3169
> Project: Pig
> Issue Type: Improvement
> Reporter: Mark Wagner
> Assignee: Mark Wagner
> Priority: Minor
> Fix For: 0.12
>
> Attachments: PIG-3169.1.patch, PIG-3169-hotfix.patch
>
>
> When using Grunt, intermediate data and distributed caches files are left in
> 'pig.temp.dir' until the session is closed. It would be nice to cleanup files
> as they are no longer needed.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira