Skip to content

HADOOP-14630 Contract Tests to verify create, mkdirs and rename under a file is forbidden #533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

steveloughran
Copy link
Contributor

HADOOP-14630. Contract Tests to verify create, mkdirs and rename under a file is forbidden

@@ -524,9 +524,17 @@ Create a directory and all its parents
#### Preconditions


The path must either be a directory or not exist

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

if exists(FS, p) and not isDir(FS, p) :
raise [ParentNotDirectoryException, FileAlreadyExistsException, IOException]

No ancestor may be a file

forall d = ancestors(FS, p) :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

forall d = ancestors(FS, p) :
if exists(FS, d) and not isDir(FS, d) :
raise [ParentNotDirectoryException, FileAlreadyExistsException, IOException]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

@@ -566,6 +574,12 @@ Writing to or overwriting a directory must fail.

if isDir(FS, p) : raise {FileAlreadyExistsException, FileNotFoundException, IOException}

No ancestor may be a file

forall d = ancestors(FS, p) :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

forall d = ancestors(FS, p) :
if exists(FS, d) and not isDir(FS, d) :
raise [ParentNotDirectoryException, FileAlreadyExistsException, IOException]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 41 Docker mode activated.
_ Prechecks _
+1 @author 1 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
0 mvndep 61 Maven dependency ordering for branch
+1 mvninstall 1090 trunk passed
+1 compile 948 trunk passed
+1 checkstyle 216 trunk passed
+1 mvnsite 232 trunk passed
+1 shadedclient 1238 branch has no errors when building and testing our client artifacts.
+1 findbugs 357 trunk passed
+1 javadoc 179 trunk passed
_ Patch Compile Tests _
0 mvndep 23 Maven dependency ordering for patch
+1 mvninstall 150 the patch passed
+1 compile 907 the patch passed
-1 javac 907 root generated 1 new + 1492 unchanged - 0 fixed = 1493 total (was 1492)
-0 checkstyle 215 root: The patch generated 4 new + 147 unchanged - 3 fixed = 151 total (was 150)
+1 mvnsite 229 the patch passed
-1 whitespace 0 The patch has 5 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 shadedclient 743 patch has no errors when building and testing our client artifacts.
+1 findbugs 421 the patch passed
+1 javadoc 178 the patch passed
_ Other Tests _
-1 unit 514 hadoop-common in the patch failed.
+1 unit 115 hadoop-hdfs-client in the patch passed.
+1 unit 29 hadoop-openstack in the patch passed.
+1 unit 82 hadoop-azure in the patch passed.
+1 unit 59 hadoop-azure-datalake in the patch passed.
+1 asflicense 42 The patch does not generate ASF License warnings.
7896
Reason Tests
Failed junit tests hadoop.fs.contract.localfs.TestLocalFSContractRename
hadoop.fs.contract.rawlocal.TestRawlocalContractRename
Subsystem Report/Notes
Docker Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-533/1/artifact/out/Dockerfile
GITHUB PR #533
Optional Tests dupname asflicense mvnsite compile javac javadoc mvninstall unit shadedclient findbugs checkstyle
uname Linux 1692ad49d3cc 4.4.0-138-generic #164~14.04.1-Ubuntu SMP Fri Oct 5 08:56:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / 3a8118b
maven version: Apache Maven 3.3.9
Default Java 1.8.0_191
findbugs v3.1.0-RC1
javac https://builds.apache.org/job/hadoop-multibranch/job/PR-533/1/artifact/out/diff-compile-javac-root.txt
checkstyle https://builds.apache.org/job/hadoop-multibranch/job/PR-533/1/artifact/out/diff-checkstyle-root.txt
whitespace https://builds.apache.org/job/hadoop-multibranch/job/PR-533/1/artifact/out/whitespace-eol.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-533/1/artifact/out/patch-unit-hadoop-common-project_hadoop-common.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-533/1/testReport/
Max. process+thread count 1714 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs-client hadoop-tools/hadoop-openstack hadoop-tools/hadoop-azure hadoop-tools/hadoop-azure-datalake U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-533/1/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@steveloughran steveloughran changed the title HADOOP-14630 HADOOP-14630 Contract Tests to verify create, mkdirs and rename under a file is forbidden Feb 28, 2019
@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 29 Docker mode activated.
_ Prechecks _
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
0 mvndep 62 Maven dependency ordering for branch
+1 mvninstall 1041 trunk passed
-1 compile 103 root in trunk failed.
+1 checkstyle 193 trunk passed
+1 mvnsite 208 trunk passed
+1 shadedclient 1081 branch has no errors when building and testing our client artifacts.
+1 findbugs 303 trunk passed
+1 javadoc 153 trunk passed
_ Patch Compile Tests _
0 mvndep 21 Maven dependency ordering for patch
+1 mvninstall 153 the patch passed
+1 compile 984 the patch passed
-1 javac 984 root generated 1180 new + 309 unchanged - 0 fixed = 1489 total (was 309)
-0 checkstyle 191 root: The patch generated 4 new + 147 unchanged - 3 fixed = 151 total (was 150)
+1 mvnsite 223 the patch passed
-1 whitespace 0 The patch has 36 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
-1 whitespace 1 The patch 600 line(s) with tabs.
+1 shadedclient 661 patch has no errors when building and testing our client artifacts.
+1 findbugs 392 the patch passed
+1 javadoc 204 the patch passed
_ Other Tests _
-1 unit 496 hadoop-common in the patch failed.
+1 unit 123 hadoop-hdfs-client in the patch passed.
+1 unit 35 hadoop-openstack in the patch passed.
+1 unit 94 hadoop-azure in the patch passed.
+1 unit 65 hadoop-azure-datalake in the patch passed.
-1 asflicense 48 The patch generated 1 ASF License warnings.
6737
Reason Tests
Failed junit tests hadoop.fs.contract.rawlocal.TestRawlocalContractRename
hadoop.fs.contract.localfs.TestLocalFSContractRename
Subsystem Report/Notes
Docker Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-533/2/artifact/out/Dockerfile
GITHUB PR #533
Optional Tests dupname asflicense mvnsite compile javac javadoc mvninstall unit shadedclient findbugs checkstyle
uname Linux c873d3245fa9 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / 15098df
maven version: Apache Maven 3.3.9
Default Java 1.8.0_191
compile https://builds.apache.org/job/hadoop-multibranch/job/PR-533/2/artifact/out/branch-compile-root.txt
findbugs v3.1.0-RC1
javac https://builds.apache.org/job/hadoop-multibranch/job/PR-533/2/artifact/out/diff-compile-javac-root.txt
checkstyle https://builds.apache.org/job/hadoop-multibranch/job/PR-533/2/artifact/out/diff-checkstyle-root.txt
whitespace https://builds.apache.org/job/hadoop-multibranch/job/PR-533/2/artifact/out/whitespace-eol.txt
whitespace https://builds.apache.org/job/hadoop-multibranch/job/PR-533/2/artifact/out/whitespace-tabs.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-533/2/artifact/out/patch-unit-hadoop-common-project_hadoop-common.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-533/2/testReport/
asflicense https://builds.apache.org/job/hadoop-multibranch/job/PR-533/2/artifact/out/patch-asflicense-problems.txt
Max. process+thread count 1397 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs-client hadoop-tools/hadoop-openstack hadoop-tools/hadoop-azure hadoop-tools/hadoop-azure-datalake U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-533/2/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@steveloughran
Copy link
Contributor Author

Whitespace is from an error file. I deny (direct) responsibility

./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:79:680000000-680580000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:80:680580000-755580000 ---p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:81:755580000-755800000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:82:755800000-7c0000000 ---p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:83:7f5d7ff54000-7f5d7ff57000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:84:7f5d7ff57000-7f5d805ff000 ---p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:85:7f5d805ff000-7f5d80602000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:86:7f5d80602000-7f5d80ca9000 ---p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:87:7f5d80ca9000-7f5d80cab000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:88:7f5d80cab000-7f5d80fff000 ---p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:89:7f5d80fff000-7f5d81000000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:90:7f5d81000000-7f5d81270000 rwxp 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:91:7f5d81270000-7f5d90000000 ---p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:92:7f5d90000000-7f5d9003b000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:93:7f5d9003b000-7f5d94000000 ---p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:94:7f5d94350000-7f5d94351000 ---p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:95:7f5d94351000-7f5d94451000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:96:7f5d94451000-7f5d94452000 ---p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:97:7f5d94452000-7f5d94552000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:98:7f5d94552000-7f5d94553000 ---p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:99:7f5d94553000-7f5d9465d000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:100:7f5d9465d000-7f5d94a13000 ---p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:109:7f5d94e28000-7f5d94e2e000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:118:7f5d95251000-7f5d95253000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:146:7f5d96341000-7f5d96345000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:151:7f5d97263000-7f5d97293000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:156:7f5d974ac000-7f5d974b0000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:169:7f5d97c94000-7f5d97c98000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:176:7f5d97fbd000-7f5d97fc0000 ---p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:177:7f5d97fc0000-7f5d980c2000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:178:7f5d980c9000-7f5d980ca000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:179:7f5d980ca000-7f5d980cb000 r--p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:180:7f5d980cb000-7f5d980cc000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:183:7f5d980ce000-7f5d980cf000 rw-p 00000000 00:00 0 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:190:jvm_args: -Dapplication.home=/usr/lib/jvm/java-8-openjdk-amd64 -Xms8m 
./hadoop-hdfs-project/hadoop-hdfs-client/hs_err_pid24650.log:222:libc:glibc 2.23 NPTL 2.23 

@steveloughran steveloughran force-pushed the filesystem/HADOOP-14630-create-under-file branch from 10fd31d to 2615fb3 Compare March 9, 2019 16:15
@@ -524,9 +524,17 @@ Create a directory and all its parents
#### Preconditions


The path must either be a directory or not exist

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

if exists(FS, p) and not isDir(FS, p) :
raise [ParentNotDirectoryException, FileAlreadyExistsException, IOException]

No ancestor may be a file

forall d = ancestors(FS, p) :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

forall d = ancestors(FS, p) :
if exists(FS, d) and not isDir(FS, d) :
raise [ParentNotDirectoryException, FileAlreadyExistsException, IOException]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

@@ -566,6 +574,12 @@ Writing to or overwriting a directory must fail.

if isDir(FS, p) : raise {FileAlreadyExistsException, FileNotFoundException, IOException}

No ancestor may be a file

forall d = ancestors(FS, p) :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

forall d = ancestors(FS, p) :
if exists(FS, d) and not isDir(FS, d) :
raise [ParentNotDirectoryException, FileAlreadyExistsException, IOException]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 30 Docker mode activated.
_ Prechecks _
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
0 mvndep 21 Maven dependency ordering for branch
+1 mvninstall 1088 trunk passed
+1 compile 1026 trunk passed
+1 checkstyle 199 trunk passed
+1 mvnsite 222 trunk passed
+1 shadedclient 1108 branch has no errors when building and testing our client artifacts.
+1 findbugs 323 trunk passed
+1 javadoc 161 trunk passed
_ Patch Compile Tests _
0 mvndep 23 Maven dependency ordering for patch
+1 mvninstall 154 the patch passed
-1 compile 288 root in the patch failed.
-1 javac 288 root in the patch failed.
-0 checkstyle 195 root: The patch generated 4 new + 148 unchanged - 3 fixed = 152 total (was 151)
-1 mvnsite 23 hadoop-common in the patch failed.
-1 whitespace 0 The patch has 5 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 shadedclient 657 patch has no errors when building and testing our client artifacts.
+1 findbugs 331 the patch passed
+1 javadoc 139 the patch passed
_ Other Tests _
+1 unit 505 hadoop-common in the patch passed.
+1 unit 109 hadoop-hdfs-client in the patch passed.
+1 unit 19 hadoop-openstack in the patch passed.
+1 unit 79 hadoop-azure in the patch passed.
+1 unit 51 hadoop-azure-datalake in the patch passed.
+1 asflicense 25 The patch does not generate ASF License warnings.
6688
Subsystem Report/Notes
Docker Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-533/3/artifact/out/Dockerfile
GITHUB PR #533
Optional Tests dupname asflicense mvnsite compile javac javadoc mvninstall unit shadedclient findbugs checkstyle
uname Linux f30449e11c5c 4.4.0-139-generic #165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / 0cbe9ad
maven version: Apache Maven 3.3.9
Default Java 1.8.0_191
findbugs v3.1.0-RC1
compile https://builds.apache.org/job/hadoop-multibranch/job/PR-533/3/artifact/out/patch-compile-root.txt
javac https://builds.apache.org/job/hadoop-multibranch/job/PR-533/3/artifact/out/patch-compile-root.txt
checkstyle https://builds.apache.org/job/hadoop-multibranch/job/PR-533/3/artifact/out/diff-checkstyle-root.txt
mvnsite https://builds.apache.org/job/hadoop-multibranch/job/PR-533/3/artifact/out/patch-mvnsite-hadoop-common-project_hadoop-common.txt
whitespace https://builds.apache.org/job/hadoop-multibranch/job/PR-533/3/artifact/out/whitespace-eol.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-533/3/testReport/
Max. process+thread count 1471 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs-client hadoop-tools/hadoop-openstack hadoop-tools/hadoop-azure hadoop-tools/hadoop-azure-datalake U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-533/3/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@steveloughran steveloughran added the failed yetus rejected, some other test failure. Means: not ready for use label Apr 5, 2019
@@ -524,9 +524,17 @@ Create a directory and all its parents
#### Preconditions


The path must either be a directory or not exist

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

if exists(FS, p) and not isDir(FS, p) :
raise [ParentNotDirectoryException, FileAlreadyExistsException, IOException]

No ancestor may be a file

forall d = ancestors(FS, p) :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

forall d = ancestors(FS, p) :
if exists(FS, d) and not isDir(FS, d) :
raise [ParentNotDirectoryException, FileAlreadyExistsException, IOException]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

@@ -566,6 +574,12 @@ Writing to or overwriting a directory must fail.

if isDir(FS, p) : raise {FileAlreadyExistsException, FileNotFoundException, IOException}

No ancestor may be a file

forall d = ancestors(FS, p) :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

forall d = ancestors(FS, p) :
if exists(FS, d) and not isDir(FS, d) :
raise [ParentNotDirectoryException, FileAlreadyExistsException, IOException]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 82 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 5 new or modified test files.
_ trunk Compile Tests _
0 mvndep 25 Maven dependency ordering for branch
+1 mvninstall 1208 trunk passed
+1 compile 1182 trunk passed
+1 checkstyle 166 trunk passed
+1 mvnsite 256 trunk passed
+1 shadedclient 1213 branch has no errors when building and testing our client artifacts.
+1 javadoc 187 trunk passed
0 spotbugs 47 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 426 trunk passed
_ Patch Compile Tests _
0 mvndep 27 Maven dependency ordering for patch
+1 mvninstall 171 the patch passed
+1 compile 1046 the patch passed
-1 javac 1046 root generated 1 new + 1479 unchanged - 0 fixed = 1480 total (was 1479)
-0 checkstyle 159 root: The patch generated 4 new + 146 unchanged - 3 fixed = 150 total (was 149)
+1 mvnsite 254 the patch passed
-1 whitespace 1 The patch has 5 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 shadedclient 782 patch has no errors when building and testing our client artifacts.
+1 javadoc 193 the patch passed
+1 findbugs 468 the patch passed
_ Other Tests _
+1 unit 553 hadoop-common in the patch passed.
+1 unit 128 hadoop-hdfs-client in the patch passed.
+1 unit 32 hadoop-openstack in the patch passed.
+1 unit 88 hadoop-azure in the patch passed.
+1 unit 63 hadoop-azure-datalake in the patch passed.
+1 asflicense 48 The patch does not generate ASF License warnings.
8632
Subsystem Report/Notes
Docker Client=18.09.7 Server=18.09.7 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-533/4/artifact/out/Dockerfile
GITHUB PR #533
Optional Tests dupname asflicense mvnsite compile javac javadoc mvninstall unit shadedclient findbugs checkstyle
uname Linux 1f9e98f5b6e4 4.15.0-52-generic #56-Ubuntu SMP Tue Jun 4 22:49:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / cd967c7
Default Java 1.8.0_212
javac https://builds.apache.org/job/hadoop-multibranch/job/PR-533/4/artifact/out/diff-compile-javac-root.txt
checkstyle https://builds.apache.org/job/hadoop-multibranch/job/PR-533/4/artifact/out/diff-checkstyle-root.txt
whitespace https://builds.apache.org/job/hadoop-multibranch/job/PR-533/4/artifact/out/whitespace-eol.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-533/4/testReport/
Max. process+thread count 1535 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs-client hadoop-tools/hadoop-openstack hadoop-tools/hadoop-azure hadoop-tools/hadoop-azure-datalake U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-533/4/console
versions git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 0 Docker mode activated.
-1 patch 9 #533 does not apply to trunk. Rebase required? Wrong Branch? See https://wiki.apache.org/hadoop/HowToContribute for help.
Subsystem Report/Notes
GITHUB PR #533
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-533/5/console
versions git=2.17.1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 0 Docker mode activated.
-1 patch 12 #533 does not apply to trunk. Rebase required? Wrong Branch? See https://wiki.apache.org/hadoop/HowToContribute for help.
Subsystem Report/Notes
GITHUB PR #533
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-533/6/console
versions git=2.17.1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@apache apache deleted a comment from hadoop-yetus Aug 23, 2019
…nting createNonRecursive

Change-Id: If826ad1d893c8c9733d6259cb5d7e4d986df49e4
…leSystemMetricsSystem; intermittent failure during testing

Change-Id: I884de58f555908fbd867f82a078e04bf86849413
…ion if the direct parent is a file

Change-Id: Id53f1245068a078d682c37391b618b9de64db52a
steveloughran and others added 2 commits August 23, 2019 19:17
this has happened in 2 places now; I'm going to make it something which stores can declare they do

Change-Id: I60aa2d68cd2f9f2e511972b6c799d10348d82578
…d a new switch to allow filesystems to delcare they permit this.

S3A contact XML adds the flag; Swift does not -it does check, at a cost in performance.

Change-Id: Ifd40c6a58f6ac8cc9eeb83168e0449de59313dfd
tested: s3a, abfs, swift. my ADL login is no longer valid.
@steveloughran steveloughran force-pushed the filesystem/HADOOP-14630-create-under-file branch from 2615fb3 to fac64e5 Compare August 23, 2019 18:56

#### Preconditions


The path must either be a directory or not exist

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

if exists(FS, p) and not isDir(FS, p) :
raise [ParentNotDirectoryException, FileAlreadyExistsException, IOException]

No ancestor may be a file

forall d = ancestors(FS, p) :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

@@ -577,14 +584,20 @@ Writing to or overwriting a directory must fail.

if isDir(FS, p) : raise {FileAlreadyExistsException, FileNotFoundException, IOException}

No ancestor may be a file

forall d = ancestors(FS, p) :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 80 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 7 new or modified test files.
_ trunk Compile Tests _
0 mvndep 75 Maven dependency ordering for branch
+1 mvninstall 1461 trunk passed
+1 compile 1426 trunk passed
+1 checkstyle 190 trunk passed
+1 mvnsite 374 trunk passed
+1 shadedclient 1508 branch has no errors when building and testing our client artifacts.
+1 javadoc 315 trunk passed
0 spotbugs 56 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 602 trunk passed
_ Patch Compile Tests _
0 mvndep 27 Maven dependency ordering for patch
+1 mvninstall 247 the patch passed
+1 compile 1377 the patch passed
-1 javac 1377 root generated 1 new + 1471 unchanged - 1 fixed = 1472 total (was 1472)
-0 checkstyle 201 root: The patch generated 2 new + 162 unchanged - 3 fixed = 164 total (was 165)
+1 mvnsite 379 the patch passed
-1 whitespace 0 The patch has 3 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 xml 2 The patch has no ill-formed XML file.
+1 shadedclient 884 patch has no errors when building and testing our client artifacts.
+1 javadoc 297 the patch passed
+1 findbugs 643 the patch passed
_ Other Tests _
+1 unit 661 hadoop-common in the patch passed.
+1 unit 144 hadoop-hdfs-client in the patch passed.
+1 unit 41 hadoop-openstack in the patch passed.
+1 unit 105 hadoop-aws in the patch passed.
+1 unit 105 hadoop-azure in the patch passed.
+1 unit 81 hadoop-azure-datalake in the patch passed.
+1 asflicense 66 The patch does not generate ASF License warnings.
11090
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-533/11/artifact/out/Dockerfile
GITHUB PR #533
Optional Tests dupname asflicense mvnsite compile javac javadoc mvninstall unit shadedclient findbugs checkstyle xml
uname Linux 15bf9e7d9871 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / ebef99d
Default Java 1.8.0_222
javac https://builds.apache.org/job/hadoop-multibranch/job/PR-533/11/artifact/out/diff-compile-javac-root.txt
checkstyle https://builds.apache.org/job/hadoop-multibranch/job/PR-533/11/artifact/out/diff-checkstyle-root.txt
whitespace https://builds.apache.org/job/hadoop-multibranch/job/PR-533/11/artifact/out/whitespace-eol.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-533/11/testReport/
Max. process+thread count 1346 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs-client hadoop-tools/hadoop-openstack hadoop-tools/hadoop-aws hadoop-tools/hadoop-azure hadoop-tools/hadoop-azure-datalake U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-533/11/console
versions git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@apache apache deleted a comment from hadoop-yetus Aug 26, 2019
@apache apache deleted a comment from hadoop-yetus Aug 26, 2019
@apache apache deleted a comment from hadoop-yetus Aug 26, 2019

#### Preconditions


The path must either be a directory or not exist

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

if exists(FS, p) and not isDir(FS, p) :
raise [ParentNotDirectoryException, FileAlreadyExistsException, IOException]

No ancestor may be a file

forall d = ancestors(FS, p) :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

@@ -577,14 +584,20 @@ Writing to or overwriting a directory must fail.

if isDir(FS, p) : raise {FileAlreadyExistsException, FileNotFoundException, IOException}

No ancestor may be a file

forall d = ancestors(FS, p) :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 66 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 7 new or modified test files.
_ trunk Compile Tests _
0 mvndep 27 Maven dependency ordering for branch
+1 mvninstall 1263 trunk passed
+1 compile 1229 trunk passed
+1 checkstyle 169 trunk passed
+1 mvnsite 313 trunk passed
+1 shadedclient 1279 branch has no errors when building and testing our client artifacts.
+1 javadoc 234 trunk passed
0 spotbugs 46 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 474 trunk passed
_ Patch Compile Tests _
0 mvndep 24 Maven dependency ordering for patch
+1 mvninstall 193 the patch passed
+1 compile 1036 the patch passed
-1 javac 1036 root generated 1 new + 1471 unchanged - 1 fixed = 1472 total (was 1472)
-0 checkstyle 151 root: The patch generated 2 new + 162 unchanged - 3 fixed = 164 total (was 165)
+1 mvnsite 310 the patch passed
-1 whitespace 0 The patch has 3 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 xml 2 The patch has no ill-formed XML file.
+1 shadedclient 670 patch has no errors when building and testing our client artifacts.
+1 javadoc 240 the patch passed
-1 findbugs 34 hadoop-azure-datalake in the patch failed.
_ Other Tests _
+1 unit 557 hadoop-common in the patch passed.
+1 unit 131 hadoop-hdfs-client in the patch passed.
+1 unit 33 hadoop-openstack in the patch passed.
+1 unit 94 hadoop-aws in the patch passed.
+1 unit 96 hadoop-azure in the patch passed.
-1 unit 35 hadoop-azure-datalake in the patch failed.
+1 asflicense 50 The patch does not generate ASF License warnings.
9016
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-533/12/artifact/out/Dockerfile
GITHUB PR #533
Optional Tests dupname asflicense mvnsite compile javac javadoc mvninstall unit shadedclient findbugs checkstyle xml
uname Linux ef17c45ef432 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 personality/hadoop.sh
git revision trunk / 3329257
Default Java 1.8.0_222
javac https://builds.apache.org/job/hadoop-multibranch/job/PR-533/12/artifact/out/diff-compile-javac-root.txt
checkstyle https://builds.apache.org/job/hadoop-multibranch/job/PR-533/12/artifact/out/diff-checkstyle-root.txt
whitespace https://builds.apache.org/job/hadoop-multibranch/job/PR-533/12/artifact/out/whitespace-eol.txt
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-533/12/artifact/out/patch-findbugs-hadoop-tools_hadoop-azure-datalake.txt
unit https://builds.apache.org/job/hadoop-multibranch/job/PR-533/12/artifact/out/patch-unit-hadoop-tools_hadoop-azure-datalake.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-533/12/testReport/
Max. process+thread count 1426 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs-client hadoop-tools/hadoop-openstack hadoop-tools/hadoop-aws hadoop-tools/hadoop-azure hadoop-tools/hadoop-azure-datalake U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-533/12/console
versions git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.


#### Preconditions


The path must either be a directory or not exist

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

if exists(FS, p) and not isDir(FS, p) :
raise [ParentNotDirectoryException, FileAlreadyExistsException, IOException]

No ancestor may be a file

forall d = ancestors(FS, p) :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

@@ -577,14 +584,20 @@ Writing to or overwriting a directory must fail.

if isDir(FS, p) : raise {FileAlreadyExistsException, FileNotFoundException, IOException}

No ancestor may be a file

forall d = ancestors(FS, p) :

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whitespace:end of line

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
0 reexec 89 Docker mode activated.
_ Prechecks _
+1 dupname 0 No case conflicting files found.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 7 new or modified test files.
_ trunk Compile Tests _
0 mvndep 34 Maven dependency ordering for branch
+1 mvninstall 1230 trunk passed
+1 compile 1174 trunk passed
+1 checkstyle 164 trunk passed
+1 mvnsite 297 trunk passed
+1 shadedclient 1262 branch has no errors when building and testing our client artifacts.
+1 javadoc 229 trunk passed
0 spotbugs 46 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 532 trunk passed
_ Patch Compile Tests _
0 mvndep 23 Maven dependency ordering for patch
+1 mvninstall 214 the patch passed
+1 compile 1039 the patch passed
-1 javac 1039 root generated 1 new + 1471 unchanged - 1 fixed = 1472 total (was 1472)
-0 checkstyle 147 root: The patch generated 2 new + 162 unchanged - 3 fixed = 164 total (was 165)
+1 mvnsite 275 the patch passed
-1 whitespace 0 The patch has 3 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 xml 2 The patch has no ill-formed XML file.
+1 shadedclient 746 patch has no errors when building and testing our client artifacts.
+1 javadoc 217 the patch passed
+1 findbugs 538 the patch passed
_ Other Tests _
+1 unit 608 hadoop-common in the patch passed.
+1 unit 129 hadoop-hdfs-client in the patch passed.
+1 unit 26 hadoop-openstack in the patch passed.
+1 unit 78 hadoop-aws in the patch passed.
+1 unit 85 hadoop-azure in the patch passed.
+1 unit 56 hadoop-azure-datalake in the patch passed.
+1 asflicense 43 The patch does not generate ASF License warnings.
9087
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-533/13/artifact/out/Dockerfile
GITHUB PR #533
Optional Tests dupname asflicense mvnsite compile javac javadoc mvninstall unit shadedclient findbugs checkstyle xml
uname Linux 14965c760f79 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / 915cbc9
Default Java 1.8.0_222
javac https://builds.apache.org/job/hadoop-multibranch/job/PR-533/13/artifact/out/diff-compile-javac-root.txt
checkstyle https://builds.apache.org/job/hadoop-multibranch/job/PR-533/13/artifact/out/diff-checkstyle-root.txt
whitespace https://builds.apache.org/job/hadoop-multibranch/job/PR-533/13/artifact/out/whitespace-eol.txt
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-533/13/testReport/
Max. process+thread count 1379 (vs. ulimit of 5500)
modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs-client hadoop-tools/hadoop-openstack hadoop-tools/hadoop-aws hadoop-tools/hadoop-azure hadoop-tools/hadoop-azure-datalake U: .
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-533/13/console
versions git=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered by Apache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

shanthoosh pushed a commit to shanthoosh/hadoop that referenced this pull request Oct 15, 2019
…g partition while choosing.

Author: Aditya Toomula <atoomula@linkedin.com>

Reviewers: Jagadish<jagadish@apache.org>

Closes apache#533 from atoomula/chooser
Copy link
Member

@liuml07 liuml07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 once rebased again and a QA. Do you think we can backport this to all 2.10+ branches?

expectMkdirsUnderFileFails("mkdirs() file/dir",
grandparent, child);

try {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need another mkdirs(child) test here? I thought it's already tested in above expectMkdirsUnderFileFails().

Is this for verbose logging output? I mean,

      handleRelaxedException(action,
          "ParentNotDirectoryException",
          e);

v.s.

      handleRelaxedException("creating a file under a subdirectory of a file ",
          "FileAlreadyExistsException",
          e);

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just being curious about deeper creation .. those object stores are so troublesome here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I think this test testMkdirUnderFileSubdir makes perfect sense. In this test, I was assuming the whole try-catch clause is having the same logic (except exception handling) as the call to expectMkdirsUnderFileFails() in LoC 376 in this method.

@steveloughran
Copy link
Contributor Author

thx for the merge -no obvious issues with a backport

@steveloughran
Copy link
Contributor Author

merged; closing. Thanks for looking @ this

@liuml07 liuml07 removed the failed yetus rejected, some other test failure. Means: not ready for use label Mar 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants