[
https://issues.apache.org/jira/browse/HDFS-14802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16951613#comment-16951613
]
Ayush Saxena commented on HDFS-14802:
-------------------------------------
Thanx [~ferhui] for the report.
IMO We shouldn't allow deletion of any protected directory in any way.
and I agree to restrict rename for protected directories, to prevent this hacky
way of deleting the protected directories.
But to my knowledge this would be an incompatible change too. Since this would
be change in behavior of rename API.
One other way that I can think of, is at the time of rename, maybe we forward
the behavior preventing deletion so that the renamed dir also can't be deleted,
but not sure what is the best way to do so.
Let me check if we can get some more opinions/help here.
[~elgoiri] [~vinayakumarb] [[email protected]] [~aajisaka] any opinions here...
> The feature of protect directories should be used in RenameOp
> -------------------------------------------------------------
>
> Key: HDFS-14802
> URL: https://issues.apache.org/jira/browse/HDFS-14802
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: hdfs
> Affects Versions: 3.0.4, 3.3.0, 3.2.1, 3.1.3
> Reporter: Fei Hui
> Assignee: Fei Hui
> Priority: Major
> Attachments: HDFS-14802.001.patch, HDFS-14802.002.patch,
> HDFS-14802.003.patch
>
>
> Now we could set fs.protected.directories to prevent users from deleting
> important directories. But users can delete directories around the limitation.
> 1. Rename the directories and delete them.
> 2. move the directories to trash and namenode will delete them.
> So I think we should use the feature of protected directories in RenameOp
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]