[
https://issues.apache.org/jira/browse/HDFS-12088?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16074728#comment-16074728
]
Wei-Chiu Chuang commented on HDFS-12088:
----------------------------------------
Hi lufei,
could you explain the expected behavior? I was under the impression that the
existing implementation is correct.
Removing an ec policy from ECPM has the potential to turn existing ec files
corrupt, or crash namenode as well (if there's an NPE).
Now that I reviewed ECPM implementation again, and I am confused by what these
operations are supposed to do. A "remove" should also remove an ec policy from
fsimage as well, I suppose.
> Remove a user defined EC Policy,the policy is not removed from the
> userPolicies map
> -----------------------------------------------------------------------------------
>
> Key: HDFS-12088
> URL: https://issues.apache.org/jira/browse/HDFS-12088
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: erasure-coding, hdfs
> Affects Versions: 3.0.0-alpha3
> Reporter: lufei
> Assignee: lufei
> Priority: Critical
> Labels: hdfs-ec-3.0-must-do
> Attachments: HDFS-12088.001.patch
>
>
> When user remove an user defined EC policy, it needs to remove the policy
> from the userPolicies Map but not only remove from the enabledPolicies
> Map.Otherwise, after remove the user defined EC policy, user can recover the
> EC policy by enable the same EC policy.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]