You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2017/09/13 12:41:00 UTC

[jira] [Comment Edited] (HBASE-18801) Bulk load cleanup may falsely deem file deletion successful

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

Ted Yu edited comment on HBASE-18801 at 9/13/17 12:40 PM:
----------------------------------------------------------

It is not easy to know the cause of inability to delete the file based on boolean return.

For now, IOException can be thrown when false is returned and the file exists.


was (Author: yuzhihong@gmail.com):
It is not easy to know the cause of inability to delete the file based on boolean return.

For now, IOException can be thrown when false is returned.

> Bulk load cleanup may falsely deem file deletion successful
> -----------------------------------------------------------
>
>                 Key: HBASE-18801
>                 URL: https://issues.apache.org/jira/browse/HBASE-18801
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ted Yu
>
> Toward the cleanupBulkLoad() method:
> {code}
>     fs.delete(new Path(request.getBulkToken()), true);
> {code}
> The return value from delete() call is ignore, potentially leading to file lying around after the cleanup.
> This applies to all branches.
> Discovered when investigating bulk load test failure.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)