[
https://issues.apache.org/jira/browse/PIG-3169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Wagner updated PIG-3169:
-----------------------------
Attachment: PIG-3169.4.patch
Because all the temporary files are under relativeRoot, the order does matter
to a degree. That's why it currently uses a stack. I see two options:
PIG-3169.4.patch: Handles the "relativeRoot" element specially and manually
deletes it.
PIG-3169.5.patch: Don't keep track of all the different files. Instead, just
recursively delete the root temporary directory. The one problem with this is
the deprecated method getTemporaryPath(ElementDescriptor, PigContext) which
could make temporary files in other locations. However, this is only ever
called using a null ElementDescriptor in the codebase and has been deprecated
since PIG-1454 (0.8.0). Should we take this opportunity to purge the deprecated
methods?
> Remove intermediate data after a job finishes
> ---------------------------------------------
>
> 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.2.patch, PIG-3169.3.patch,
> PIG-3169.4.patch, PIG-3169.5.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