[
https://issues.apache.org/jira/browse/HDFS-9349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15196503#comment-15196503
]
Arpit Agarwal commented on HDFS-9349:
-------------------------------------
Thank you for updating the patch [~xiaobingo]. The synchronization needs more
work as the caller of {{getProtectedDirectories}} assumes the set will not be
modified. Modifications to {{protectedDirectories}} will be rare so let's just
make it a volatile reference and {{setProtectedDirectories}} can replace the
reference atomically with a newly constructed set. Also you can use
{{parseProtectedDirectories}} to construct the new set.
> Support reconfiguring fs.protected.directories without NN restart
> -----------------------------------------------------------------
>
> Key: HDFS-9349
> URL: https://issues.apache.org/jira/browse/HDFS-9349
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: namenode
> Reporter: Xiaobing Zhou
> Assignee: Xiaobing Zhou
> Attachments: HDFS-9349-HDFS-9000.003.patch,
> HDFS-9349-HDFS-9000.004.patch, HDFS-9349-HDFS-9000.005.patch,
> HDFS-9349.001.patch, HDFS-9349.002.patch
>
>
> This is to reconfigure
> {code}
> fs.protected.directories
> {code}
> without restarting NN.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)