hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-13036) Reusing the volume storage ID obtained by replicaInfo
Date Sat, 20 Jan 2018 02:13:00 GMT

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

Hudson commented on HDFS-13036:
-------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #13530 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/13530/])
HDFS-13036. Reusing the volume storage ID obtained by replicaInfo. (cliang: rev 62c9e7fa99da1b1c8af222436102b8dea02fcde8)
* (edit) hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsDatasetImpl.java


> Reusing the volume storage ID obtained by replicaInfo
> -----------------------------------------------------
>
>                 Key: HDFS-13036
>                 URL: https://issues.apache.org/jira/browse/HDFS-13036
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: datanode
>    Affects Versions: 3.1.0
>            Reporter: liaoyuxiangqin
>            Assignee: liaoyuxiangqin
>            Priority: Major
>             Fix For: 3.1.0
>
>         Attachments: HDFS-13036.001.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> When i read the getBlockReports() of FsDatasetImpl class in datanode, i found the
following case code could be more simplify and need't to obtained volume storage ID by replicaInfo
again and again, because the vol id have get by above code.Thanks.
> {code:java|title=FsDatasetImpl.java|borderStyle=solid}
> switch(b.getState()) {
> case FINALIZED:
> case RBW:
> case RWR:
>  builders.get(b.getVolume().getStorageID()).add(b);
>  break;
> case RUR:
>  ReplicaInfo orig = b.getOriginalReplica();
>  builders.get(b.getVolume().getStorageID()).add(orig);
>  break;
> case TEMPORARY:
>  break;
> default:
>  assert false : "Illegal ReplicaInfo state.";
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
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