Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
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.
public enum StorageType { DISK(false), SSD(false), ARCHIVE(false), RAM_DISK(true); ... }
Attachments
Attachments
Issue Links
- breaks
-
HADOOP-12095 org.apache.hadoop.fs.shell.TestCount fails
-
- Resolved
-
- is duplicated by
-
HDFS-9667 StorageType: SSD precede over DISK
-
- Resolved
-
- is related to
-
HBASE-14061 Support CF-level Storage Policy
-
- Closed
-