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-8361) Choose SSD over DISK in block placement
Date Tue, 16 Jun 2015 12:47:06 GMT

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

Hudson commented on HDFS-8361:
------------------------------

FAILURE: Integrated in Hadoop-Hdfs-trunk #2158 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/2158/])
HDFS-8361. Choose SSD over DISK in block placement. (szetszwo: rev 175e6d120fc34710048c2e9512dd270410172803)
* hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestBlockStoragePolicy.java
* hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
* hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/StorageType.java


> Choose SSD over DISK in block placement
> ---------------------------------------
>
>                 Key: HDFS-8361
>                 URL: https://issues.apache.org/jira/browse/HDFS-8361
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: namenode
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Tsz Wo Nicholas Sze
>             Fix For: 2.7.1
>
>         Attachments: h8361_20150508.patch, h8361_20150612.patch
>
>
> BlockPlacementPolicyDefault chooses the StorageType by iterating the given StorageType
EnumMap in its natural order (the order in which the enum constants are declared).  So DISK
will be chosen over SSD in One-SSD policy since DISK is declared before SSD as shown below.
 We should choose SSD first.
> {code}
> public enum StorageType {
>   DISK(false),
>   SSD(false),
>   ARCHIVE(false),
>   RAM_DISK(true);
>   ...
> }
> {code}



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

Mime
View raw message