[ https://issues.apache.org/jira/browse/HDFS-5157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13761677#comment-13761677 ]
Junping Du commented on HDFS-5157: ---------------------------------- Oh. I see. Just notice the field of targets in write/replace is "required" in datatransfer.proto. That may be why someone said every field should be "optional" in PB for flexiblity. Isn't it? :) > Datanode should allow choosing the target storage > ------------------------------------------------- > > Key: HDFS-5157 > URL: https://issues.apache.org/jira/browse/HDFS-5157 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: datanode > Affects Versions: Heterogeneous Storage (HDFS-2832) > Reporter: Arpit Agarwal > Assignee: Junping Du > > Datanode should allow should choosing a target Storage or target Storage Type > as a parameter when creating a new block. Currently there are two ways in > which the target volume is chosen (via {{VolumeChoosingPolicy#chooseVolume}}. > # AvailableSpaceVolumeChoosingPolicy > # RoundRobinVolumeChoosingPolicy > BlockReceiver and receiveBlock should also accept a new parameter for target > storage or storage type. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira