hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HDFS-7493) removedDst should be checked against null in finally block of FSDirRenameOp#unprotectedRenameTo()
Date Fri, 02 Jan 2015 04:04:13 GMT

     [ https://issues.apache.org/jira/browse/HDFS-7493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ted Yu resolved HDFS-7493.
--------------------------
    Resolution: Duplicate

Dup of HDFS-7538

> removedDst should be checked against null in finally block of FSDirRenameOp#unprotectedRenameTo()
> -------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-7493
>                 URL: https://issues.apache.org/jira/browse/HDFS-7493
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Minor
>
> {code}
>           removedDst = dstIIP.getLastINode();
>           undoRemoveDst = true;
> {code}
> If removedDst is null, the following code in finally block may result in NPE:
> {code}
>         if (dstParent.isDirectory() &&
>             dstParent.asDirectory().isWithSnapshot()) {
>           dstParent.asDirectory().undoRename4DstParent(removedDst,
>               dstIIP.getLatestSnapshotId());
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message