[ https://issues.apache.org/jira/browse/HDFS-9807?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Virajith Jalaparti updated HDFS-9807: ------------------------------------- Attachment: HDFS-9807.008.patch Posting a patch which is a modification of the patch posted by [~ehiggs]. The test is now renamed to {{TestNamenodeStorageDirectives}} from {{TestDataNodeStorage}} (also moved to the {{org.apache.hadoop.hdfs.server.namenode}} package). Also, added a new {{TestBlockPlacementPolicy}} and modified the existing {{TestVolumeChoosingPolicy}} to ensure that the storage id passed to the {{VolumeChoosingPolicy}} is exactly the same as chosen by the {{BlockPlacementPolicy}}. Also fixed some of the checkstyle issues from the earlier patch. [~ehiggs] please take a look to see if this makes sense. I also removed the {{verifyFileReplicasOnOnlyThreeStorageID}} as it was not being called, and changed the visibility of some of the functions in the test to {{private}}. > Add an optional StorageID to writes > ----------------------------------- > > Key: HDFS-9807 > URL: https://issues.apache.org/jira/browse/HDFS-9807 > Project: Hadoop HDFS > Issue Type: Improvement > Affects Versions: 3.0.0-alpha2 > Reporter: Chris Douglas > Assignee: Ewan Higgs > Attachments: HDFS-9807.001.patch, HDFS-9807.002.patch, > HDFS-9807.003.patch, HDFS-9807.004.patch, HDFS-9807.005.patch, > HDFS-9807.006.patch, HDFS-9807.007.patch, HDFS-9807.008.patch > > > The {{BlockPlacementPolicy}} considers specific storages, but when the > replica is written the DN {{VolumeChoosingPolicy}} is unaware of any > preference or constraints from other policies affecting placement. This > limits heterogeneity to the declared storage types, which are treated as > fungible within the target DN. It should be possible to influence or > constrain the DN policy to select a particular storage. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org