hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uma Maheswara Rao G (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7771) NPE when running hdfs dfs -copyToLocal, -get etc
Date Wed, 14 Mar 2012 18:44:40 GMT

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

Uma Maheswara Rao G commented on HADOOP-7771:
---------------------------------------------

Hi Daryn,
Looks this patch deletes the file if it fails to write completely.
I remember the old behavior was that the partial file still presents. I don't see any discussion
about this behavior change here. Is this discussed somewhere?

{code}
      tempFile = null;
    } finally {
      if (tempFile != null) {
        tempFile.fs.delete(tempFile.path, false);
      }
    }
{code}

                
> NPE when running hdfs dfs -copyToLocal, -get etc
> ------------------------------------------------
>
>                 Key: HADOOP-7771
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7771
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 0.23.0, 0.24.0
>            Reporter: John George
>            Assignee: John George
>            Priority: Blocker
>             Fix For: 0.23.0, 0.24.0
>
>         Attachments: HADOOP-7771.patch, HADOOP-7771.patch, HADOOP-7771.patch, HADOOP-7771.patch,
HADOOP-7771.patch, HADOOP-7771.patch
>
>
> NPE when running hdfs dfs -copyToLocal if the destination directory does not exist. The
behavior in branch-0.20-security is to create the directory and copy/get the contents from
source.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message