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

SammiChen commented on HDFS-11072:
----------------------------------

Agree, arbitrary replication factors should be supported. I have other thoughts 
for the inheritance behavior. If we create directory A, set policy EC1 on it, 
then create B under A, C under B. 
Later, if we want to change the whole directory A from EC1 to EC2, we have to 
recursively go through all directories under A, change it one by one. It sounds 
not very convenient. And since EC policy on a directory is either inherited 
from its parent or explicitly set by admin, we need a flag to indicate whether 
the policy is inherited or not. So here is my propose, for each directory, add 
a new Boolean flag, say {{inheritECPolicy}}. When the flag is true, then query 
this directory's EC policy should look through its parent's EC policy. When the 
flag is false, then the EC policy stored with this directory takes effect. 


> Add ability to unset and change directory EC policy
> ---------------------------------------------------
>
>                 Key: HDFS-11072
>                 URL: https://issues.apache.org/jira/browse/HDFS-11072
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: erasure-coding
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Andrew Wang
>            Assignee: SammiChen
>              Labels: hdfs-ec-3.0-must-do
>
> Since the directory-level EC policy simply applies to files at create time, 
> it makes sense to make it more similar to storage policies and allow changing 
> and unsetting the policy.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to