You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Lei (Eddy) Xu (JIRA)" <ji...@apache.org> on 2014/08/28 02:45:02 UTC

[jira] [Created] (HDFS-6958) Fix the condition of reporting failures in BlockPoolSlice

Lei (Eddy) Xu created HDFS-6958:
-----------------------------------

             Summary: Fix the condition of reporting failures in BlockPoolSlice
                 Key: HDFS-6958
                 URL: https://issues.apache.org/jira/browse/HDFS-6958
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: datanode
    Affects Versions: 2.5.0
            Reporter: Lei (Eddy) Xu
            Assignee: Lei (Eddy) Xu
            Priority: Trivial


{{BlockPoolSlice#addToReplicsMap()}} should log the failure for the operation that deletes restart metadata file. 

The current code did the opposite, log the failures on succeed deletion:

{code:java}
if (restartMeta.delete()) {
    FsDatasetImpl.LOG.warn("Failed to delete restart meta file: " +
              restartMeta.getPath());
}
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)