hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <j...@apache.org>
Subject [jira] [Work logged] (HADOOP-17907) FileUtil#fullyDelete deletes contents of sym-linked directory when symlink cannot be deleted because of local fs fault
Date Wed, 15 Sep 2021 02:51:00 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-17907?focusedWorklogId=650926&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-650926
]

ASF GitHub Bot logged work on HADOOP-17907:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 15/Sep/21 02:50
            Start Date: 15/Sep/21 02:50
    Worklog Time Spent: 10m 
      Work Description: FrankinRUC commented on pull request #3431:
URL: https://github.com/apache/hadoop/pull/3431#issuecomment-919656045


   > LGTM
   
   Thanks for your review.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 650926)
    Time Spent: 1h 20m  (was: 1h 10m)

> FileUtil#fullyDelete deletes contents of sym-linked directory when symlink cannot be
deleted because of local fs fault
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-17907
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17907
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>            Reporter: Weihao Zheng
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> As discussed in HADOOP-6536, FileUtil#fullyDelete should not delete the contents of the
sym-linked directory when we pass a symlink parameter. Currently we try to delete the resource
first by calling deleteImpl, and if deleteImpl is failed, we regard it as non-empty directory
and remove all its contents and then itself. This logic behaves wrong when local file system
cannot delete symlink to a directory because of faulty disk, local system's error, etc. When
we cannot delete it in the first time, hadoop will try to remove all the contents of the directory
it pointed to and leave an empty dir.
> So, we should add an isSymlink checking before we call fullyDeleteContents to prevent
such behavior.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message