goiri commented on a change in pull request #1478: HDFS-14856 Fetch file ACLs
while mounting external store
URL: https://github.com/apache/hadoop/pull/1478#discussion_r327256674
##########
File path:
hadoop-tools/hadoop-fs2img/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSTreeWalk.java
##########
@@ -97,6 +131,17 @@ public TreeIterator fork() {
}
+ private AclStatus getAclStatus(FileSystem fs, Path path) throws IOException {
+ if (enableACLs) {
+ try {
+ return fs.getAclStatus(path);
+ } catch (UnsupportedOperationException e) {
+ LOG.warn("Remote filesystem {} doesn't support ACLs", fs);
Review comment:
Can we have a unit test checking for this string?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]