Details
Description
HDFS-8983 add fs.protected.directories to support protected directories on NameNode. But as I test, when set a parent directory(eg /testA) to protected directory, the child directory (eg /testA/testB) still can be deleted or renamed. When we protect a directory mainly for protecting the data under this directory , So I think the child directory should not be delete or renamed if the parent directory is a protected directory.