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

Ted Yu commented on HBASE-12804:
--------------------------------

deleteOnExit() adds the Path to deleteOnExit (a Set).
What difference does it make by moving the call after writePartitions() ?

> ImportTsv fails to delete partition files created by it
> -------------------------------------------------------
>
>                 Key: HBASE-12804
>                 URL: https://issues.apache.org/jira/browse/HBASE-12804
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.98.9
>            Reporter: Ashish Singhi
>            Assignee: Ashish Singhi
>             Fix For: 2.0.0, 0.98.10, 1.0.1, 1.1.0
>
>         Attachments: HBASE-12804.patch
>
>
> {code}
> fs.deleteOnExit(partitionsPath);
>  writePartitions(job.getConfiguration(), partitionsPath, splitPoints);
> {code}
> In the above code deleteOnExit will return without adding file in the 
> deleteOnExit set as the file is not created till then.



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

Reply via email to