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

Rakesh R commented on HDFS-11072:
---------------------------------

Thanks [~Sammi] for the analysis.

bq. 2. removeErasureCodingPolicy
Since we are already using {{set/unset}} API pattern for the storage policy, 
I'd prefer to create {{#unsetErasureCodingPolicy()}} API instead of 
{{#removeErasureCodingPolicy()}} API.

{quote}
3. setDefaultReplicationPolicy
set replication on directory. This is only useful when user wants the directory 
from stop inheriting from it's parent's ec policy. 
{quote}
I understand there will be many use cases, like distcp(Thanks [~andrew.wang] 
for pointing out this) etc. IMHO, implementing this logic requires more focused 
coding/unit testing and reviews. How about separating out this task alone and 
pushing via HDFS-11082 jira. Please feel free to assign HDFS-11082 task to you.

> 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
>         Attachments: HDFS-11072-v1.patch, HDFS-11072-v2.patch, 
> HDFS-11072-v3.patch, HDFS-11072-v4.patch
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to