[jira] [Commented] (HADOOP-16582) LocalFileSystem's mkdirs() does not work as expected under viewfs.
[ https://issues.apache.org/jira/browse/HADOOP-16582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17148345#comment-17148345 ] Zoltan Haindrich commented on HADOOP-16582: --- [~ste...@apache.org], [~kihwal]: ping > LocalFileSystem's mkdirs() does not work as expected under viewfs. > -- > > Key: HADOOP-16582 > URL: https://issues.apache.org/jira/browse/HADOOP-16582 > Project: Hadoop Common > Issue Type: Bug >Reporter: Kihwal Lee >Assignee: Kihwal Lee >Priority: Major > Fix For: 2.10.0, 3.3.0, 2.8.6, 2.9.3, 3.1.3, 3.2.2 > > Attachments: HADOOP-16582.1.patch, HADOOP-16582.patch > > > When {{mkdirs(Path)}} is called against {{LocalFileSystem}}, the > implementation in {{RawLocalFileSystem}} is called and the directory > permission is determined by the umask. However, if it is under > {{ViewFileSystem}}, the default implementation in {{FileSystem}} is called > and this causes explicit {{chmod()}} to 0777. > The {{mkdirs(Path)}} method needs to be overriden in > - ViewFileSystem to avoid calling the default implementation > - ChRootedFileSystem for proper resolution of viewfs mount table > - FilterFileSystem to avoid calling the default implementation > Only then the same method in the target ({{LocalFileSystem}} in this case) > will be called. Hdfs does not suffer from the same flaw since it applies > umask in all cases, regardless of what version of {{mkdirs()}} was called. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org
[jira] [Commented] (HADOOP-16582) LocalFileSystem's mkdirs() does not work as expected under viewfs.
[ https://issues.apache.org/jira/browse/HADOOP-16582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17073843#comment-17073843 ] Zoltan Haindrich commented on HADOOP-16582: --- [~ste...@apache.org], [~kihwal] this commit fundamentally changes how {{mkdirs()}} work: earlier: * all plain {{mkdirs(somePath)}} were fast-tracked to {{FileSystem.mkdirs}} which have rerouted them to {{mkdirs(somePath, somePerm)}} method with some defaults (which were static) * an implementation of {{FileSystem}} have only needed implement "mkdirs(somePath, somePerm)" - because the other was not neccessarily called if it was always in a {{FilterFileSystem}} or something like that now: * especially {{FilterFileSystem}} forwards the call of {{mkdirs(p)}} to the actual fs implementation...which may skip overriden {{mkdirs(somPath,somePerm)}} methods * ...and could cause issues for existing FileSystem implementations > LocalFileSystem's mkdirs() does not work as expected under viewfs. > -- > > Key: HADOOP-16582 > URL: https://issues.apache.org/jira/browse/HADOOP-16582 > Project: Hadoop Common > Issue Type: Bug >Reporter: Kihwal Lee >Assignee: Kihwal Lee >Priority: Major > Fix For: 2.10.0, 3.3.0, 2.8.6, 2.9.3, 3.1.3, 3.2.2 > > Attachments: HADOOP-16582.1.patch, HADOOP-16582.patch > > > When {{mkdirs(Path)}} is called against {{LocalFileSystem}}, the > implementation in {{RawLocalFileSystem}} is called and the directory > permission is determined by the umask. However, if it is under > {{ViewFileSystem}}, the default implementation in {{FileSystem}} is called > and this causes explicit {{chmod()}} to 0777. > The {{mkdirs(Path)}} method needs to be overriden in > - ViewFileSystem to avoid calling the default implementation > - ChRootedFileSystem for proper resolution of viewfs mount table > - FilterFileSystem to avoid calling the default implementation > Only then the same method in the target ({{LocalFileSystem}} in this case) > will be called. Hdfs does not suffer from the same flaw since it applies > umask in all cases, regardless of what version of {{mkdirs()}} was called. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org
[jira] [Commented] (HADOOP-16582) LocalFileSystem's mkdirs() does not work as expected under viewfs.
[ https://issues.apache.org/jira/browse/HADOOP-16582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16933405#comment-16933405 ] Hudson commented on HADOOP-16582: - FAILURE: Integrated in Jenkins build Hadoop-trunk-Commit #17334 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/17334/]) HADOOP-16582. LocalFileSystem's mkdirs() does not work as expected under (kihwal: rev d4205dce176287e863f567b333e0d408bf51ae6d) * (edit) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ChRootedFileSystem.java * (edit) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java * (edit) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FilterFileSystem.java * (edit) hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/fs/TestFilterFileSystem.java > LocalFileSystem's mkdirs() does not work as expected under viewfs. > -- > > Key: HADOOP-16582 > URL: https://issues.apache.org/jira/browse/HADOOP-16582 > Project: Hadoop Common > Issue Type: Bug >Reporter: Kihwal Lee >Assignee: Kihwal Lee >Priority: Major > Fix For: 2.10.0, 3.3.0, 2.8.6, 2.9.3, 3.1.3, 3.2.2 > > Attachments: HADOOP-16582.1.patch, HADOOP-16582.patch > > > When {{mkdirs(Path)}} is called against {{LocalFileSystem}}, the > implementation in {{RawLocalFileSystem}} is called and the directory > permission is determined by the umask. However, if it is under > {{ViewFileSystem}}, the default implementation in {{FileSystem}} is called > and this causes explicit {{chmod()}} to 0777. > The {{mkdirs(Path)}} method needs to be overriden in > - ViewFileSystem to avoid calling the default implementation > - ChRootedFileSystem for proper resolution of viewfs mount table > - FilterFileSystem to avoid calling the default implementation > Only then the same method in the target ({{LocalFileSystem}} in this case) > will be called. Hdfs does not suffer from the same flaw since it applies > umask in all cases, regardless of what version of {{mkdirs()}} was called. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org
[jira] [Commented] (HADOOP-16582) LocalFileSystem's mkdirs() does not work as expected under viewfs.
[ https://issues.apache.org/jira/browse/HADOOP-16582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16932734#comment-16932734 ] Hadoop QA commented on HADOOP-16582: | (/) *{color:green}+1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | {color:blue} reexec {color} | {color:blue} 0m 30s{color} | {color:blue} Docker mode activated. {color} | || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | | {color:green}+1{color} | {color:green} test4tests {color} | {color:green} 0m 0s{color} | {color:green} The patch appears to include 1 new or modified test files. {color} | || || || || {color:brown} trunk Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 22m 27s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 14m 41s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 52s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} mvnsite {color} | {color:green} 1m 17s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} shadedclient {color} | {color:green} 13m 9s{color} | {color:green} branch has no errors when building and testing our client artifacts. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 1m 43s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 7s{color} | {color:green} trunk passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 0m 43s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 13m 59s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 13m 59s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 50s{color} | {color:green} hadoop-common-project/hadoop-common: The patch generated 0 new + 145 unchanged - 3 fixed = 145 total (was 148) {color} | | {color:green}+1{color} | {color:green} mvnsite {color} | {color:green} 1m 12s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} shadedclient {color} | {color:green} 10m 48s{color} | {color:green} patch has no errors when building and testing our client artifacts. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 1m 47s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 6s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} unit {color} | {color:green} 8m 48s{color} | {color:green} hadoop-common in the patch passed. {color} | | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 49s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 95m 59s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Docker | Client=19.03.1 Server=19.03.1 Image:yetus/hadoop:39e82acc485 | | JIRA Issue | HADOOP-16582 | | JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/12980624/HADOOP-16582.1.patch | | Optional Tests | dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle | | uname | Linux db7fb26c97e4 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux | | Build tool | maven | | Personality | /testptch/patchprocess/precommit/personality/provided.sh | | git revision | trunk / 5dd859a | | maven | version: Apache Maven 3.3.9 | | Default Java | 1.8.0_222 | | findbugs | v3.1.0-RC1 | | Test Results | https://builds.apache.org/job/PreCommit-HADOOP-Build/16534/testReport/ | | Max. process+thread count | 1421 (vs. ulimit of 5500) | | modules | C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common | | Console output | https://builds.apache.org/job/PreCommit-HADOOP-Build/16534/console | | Powered by | Apache Yetus 0.8.0 http://yetus.apache.org | This message was automatically generated. > LocalFileSystem's mkdirs() does not work as expect
[jira] [Commented] (HADOOP-16582) LocalFileSystem's mkdirs() does not work as expected under viewfs.
[ https://issues.apache.org/jira/browse/HADOOP-16582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16932514#comment-16932514 ] Kihwal Lee commented on HADOOP-16582: - Also fixed the existing mkdirs() method, which had the same checkstyle issue. > LocalFileSystem's mkdirs() does not work as expected under viewfs. > -- > > Key: HADOOP-16582 > URL: https://issues.apache.org/jira/browse/HADOOP-16582 > Project: Hadoop Common > Issue Type: Bug >Reporter: Kihwal Lee >Assignee: Kihwal Lee >Priority: Major > Attachments: HADOOP-16582.1.patch, HADOOP-16582.patch > > > When {{mkdirs(Path)}} is called against {{LocalFileSystem}}, the > implementation in {{RawLocalFileSystem}} is called and the directory > permission is determined by the umask. However, if it is under > {{ViewFileSystem}}, the default implementation in {{FileSystem}} is called > and this causes explicit {{chmod()}} to 0777. > The {{mkdirs(Path)}} method needs to be overriden in > - ViewFileSystem to avoid calling the default implementation > - ChRootedFileSystem for proper resolution of viewfs mount table > - FilterFileSystem to avoid calling the default implementation > Only then the same method in the target ({{LocalFileSystem}} in this case) > will be called. Hdfs does not suffer from the same flaw since it applies > umask in all cases, regardless of what version of {{mkdirs()}} was called. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org
[jira] [Commented] (HADOOP-16582) LocalFileSystem's mkdirs() does not work as expected under viewfs.
[ https://issues.apache.org/jira/browse/HADOOP-16582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16932278#comment-16932278 ] Steve Loughran commented on HADOOP-16582: - LGTM +1 pending fixing the checkstyle warnings. > LocalFileSystem's mkdirs() does not work as expected under viewfs. > -- > > Key: HADOOP-16582 > URL: https://issues.apache.org/jira/browse/HADOOP-16582 > Project: Hadoop Common > Issue Type: Bug >Reporter: Kihwal Lee >Assignee: Kihwal Lee >Priority: Major > Attachments: HADOOP-16582.patch > > > When {{mkdirs(Path)}} is called against {{LocalFileSystem}}, the > implementation in {{RawLocalFileSystem}} is called and the directory > permission is determined by the umask. However, if it is under > {{ViewFileSystem}}, the default implementation in {{FileSystem}} is called > and this causes explicit {{chmod()}} to 0777. > The {{mkdirs(Path)}} method needs to be overriden in > - ViewFileSystem to avoid calling the default implementation > - ChRootedFileSystem for proper resolution of viewfs mount table > - FilterFileSystem to avoid calling the default implementation > Only then the same method in the target ({{LocalFileSystem}} in this case) > will be called. Hdfs does not suffer from the same flaw since it applies > umask in all cases, regardless of what version of {{mkdirs()}} was called. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org
[jira] [Commented] (HADOOP-16582) LocalFileSystem's mkdirs() does not work as expected under viewfs.
[ https://issues.apache.org/jira/browse/HADOOP-16582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16931928#comment-16931928 ] Hadoop QA commented on HADOOP-16582: | (/) *{color:green}+1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | {color:blue} reexec {color} | {color:blue} 0m 27s{color} | {color:blue} Docker mode activated. {color} | || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | | {color:green}+1{color} | {color:green} test4tests {color} | {color:green} 0m 0s{color} | {color:green} The patch appears to include 1 new or modified test files. {color} | || || || || {color:brown} trunk Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 25m 13s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 14m 42s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 54s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} mvnsite {color} | {color:green} 1m 18s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} shadedclient {color} | {color:green} 13m 6s{color} | {color:green} branch has no errors when building and testing our client artifacts. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 1m 43s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 11s{color} | {color:green} trunk passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 0m 45s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 14m 41s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 14m 41s{color} | {color:green} the patch passed {color} | | {color:orange}-0{color} | {color:orange} checkstyle {color} | {color:orange} 0m 52s{color} | {color:orange} hadoop-common-project/hadoop-common: The patch generated 2 new + 148 unchanged - 1 fixed = 150 total (was 149) {color} | | {color:green}+1{color} | {color:green} mvnsite {color} | {color:green} 1m 16s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} shadedclient {color} | {color:green} 10m 54s{color} | {color:green} patch has no errors when building and testing our client artifacts. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 1m 46s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 1m 7s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} unit {color} | {color:green} 8m 46s{color} | {color:green} hadoop-common in the patch passed. {color} | | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 52s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 99m 43s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Docker | Client=19.03.1 Server=19.03.1 Image:yetus/hadoop:39e82acc485 | | JIRA Issue | HADOOP-16582 | | JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/12980550/HADOOP-16582.patch | | Optional Tests | dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle | | uname | Linux d196a4e40bac 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux | | Build tool | maven | | Personality | /testptch/patchprocess/precommit/personality/provided.sh | | git revision | trunk / f580a87 | | maven | version: Apache Maven 3.3.9 | | Default Java | 1.8.0_222 | | findbugs | v3.1.0-RC1 | | checkstyle | https://builds.apache.org/job/PreCommit-HADOOP-Build/16531/artifact/out/diff-checkstyle-hadoop-common-project_hadoop-common.txt | | Test Results | https://builds.apache.org/job/PreCommit-HADOOP-Build/16531/testReport/ | | Max. process+thread count | 1599 (vs. ulimit of 5500) | | modules | C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common | | Console output | https://builds.apache.org/job/PreCommit-HADOOP-Build/16531/console | | Powered b