hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HBASE-7467) CleanerChore checkAndDeleteDirectory not deleting empty directories.
Date Mon, 31 Dec 2012 05:08:12 GMT

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

Ted Yu edited comment on HBASE-7467 at 12/31/12 5:07 AM:
---------------------------------------------------------

I understand Jesse's intention in HBASE-7465.
I am fine with not leaking IOE. We should preserve the effect of IOE in that IOException would
stop remaining checking / deletion from being executed in checkAndDeleteDirectory() calls.
We can achieve this by introducing an enum one of whose values indicates fast fail.
                
      was (Author: yuzhihong@gmail.com):
    I understand Jesse's intention in HBASE-7465.
I am fine with not leaking IOE. We should preserve the effect of IOE in that IOE would stop
remaining checking / deletion to be executed in checkAndDeleteDirectory() calls. We can achieve
this by introducing an enum one of whose values indicates fast fail.
                  
> CleanerChore checkAndDeleteDirectory not deleting empty directories.
> --------------------------------------------------------------------
>
>                 Key: HBASE-7467
>                 URL: https://issues.apache.org/jira/browse/HBASE-7467
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Jean-Marc Spaggiari
>            Priority: Minor
>             Fix For: 0.96.0, 0.94.5
>
>         Attachments: HBASE-7465_7467-v3.patch, HBASE-7467.patch, HBASE-7467-v2.patch
>
>
> CleanerChore checkAndDeleteDirectory is not deleting empty directories. As a result,
some directories are kept in the FS but should have been removed.
> To reproduce, simply create an empty directory under /hbase/.archive/table_name/. If
you place a file into this directory, it's not more empty and therefore it's correctly removed.

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

Mime
View raw message