hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brahma Reddy Battula (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-9372) Remove dead code in DataStorage.recoverTransitionRead
Date Thu, 02 Feb 2017 14:07:51 GMT

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

Brahma Reddy Battula commented on HDFS-9372:
--------------------------------------------

Linking the broken jira.

> Remove dead code in DataStorage.recoverTransitionRead
> -----------------------------------------------------
>
>                 Key: HDFS-9372
>                 URL: https://issues.apache.org/jira/browse/HDFS-9372
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: datanode
>            Reporter: Duo Zhang
>            Assignee: Duo Zhang
>             Fix For: 2.8.0, 3.0.0-alpha1
>
>         Attachments: HDFS-9372-v0.patch, HDFS-9372-v1.patch
>
>
> {code:title=DataStorage.java}
>     if (this.initialized) {
>       LOG.info("DataNode version: " + HdfsServerConstants.DATANODE_LAYOUT_VERSION
>           + " and NameNode layout version: " + nsInfo.getLayoutVersion());
>       this.storageDirs = new ArrayList<StorageDirectory>(dataDirs.size());
>       // mark DN storage is initialized
>       this.initialized = true;
>     }
> {code}
> The first if should be {{!this.initialized}} I think?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message