hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashish Singhi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-12804) ImportTsv fails to delete partition files created by it
Date Mon, 05 Jan 2015 17:10:34 GMT

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

Ashish Singhi commented on HBASE-12804:
---------------------------------------

I don't have code to see now.
But what I have observed is deleteOnExit will add to the set only when the path already exists.

writePartitions will be one which will create the file and then once the path exists we should
call deleteOnExit so that we can add the file to the deleteOnExit set. 


> 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)

Mime
View raw message