Skip to content
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

HADOOP-16193. add extra S3A MPU test to see what happens if a file is created during the MPU #609

Conversation

steveloughran
Copy link
Contributor

HADOOP-16193. add extra S3A MPU test to see what happens if a file is created during the MPU

Change-Id: I15942ff8c7a772e1bf718bccbe4a249d20fa3ef2

… created during the MPU

Change-Id: I15942ff8c7a772e1bf718bccbe4a249d20fa3ef2
@steveloughran
Copy link
Contributor Author

Tested: S3 ireland. Remember to use -Dscale when running this test suite, even though this case isn't a slow one

@hadoop-yetus
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
0 reexec 22 Docker mode activated.
_ Prechecks _
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ trunk Compile Tests _
+1 mvninstall 1004 trunk passed
+1 compile 29 trunk passed
+1 checkstyle 20 trunk passed
+1 mvnsite 34 trunk passed
+1 shadedclient 647 branch has no errors when building and testing our client artifacts.
+1 findbugs 44 trunk passed
+1 javadoc 24 trunk passed
_ Patch Compile Tests _
+1 mvninstall 28 the patch passed
+1 compile 27 the patch passed
+1 javac 27 the patch passed
+1 checkstyle 16 the patch passed
+1 mvnsite 31 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedclient 684 patch has no errors when building and testing our client artifacts.
+1 findbugs 46 the patch passed
+1 javadoc 19 the patch passed
_ Other Tests _
+1 unit 275 hadoop-aws in the patch passed.
+1 asflicense 25 The patch does not generate ASF License warnings.
3052
Subsystem Report/Notes
Docker Client=17.05.0-ce Server=17.05.0-ce base: https://builds.apache.org/job/hadoop-multibranch/job/PR-609/1/artifact/out/Dockerfile
GITHUB PR #609
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux a628993d296c 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 / 091a664
maven version: Apache Maven 3.3.9
Default Java 1.8.0_191
findbugs v3.1.0-RC1
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-609/1/testReport/
Max. process+thread count 446 (vs. ulimit of 5500)
modules C: hadoop-tools/hadoop-aws U: hadoop-tools/hadoop-aws
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-609/1/console
Powered by Apache Yetus 0.9.0 http://yetus.apache.org

This message was automatically generated.

@steveloughran steveloughran added the fs/s3 changes related to hadoop-aws; submitter must declare test endpoint label Mar 28, 2019
@steveloughran steveloughran added failed yetus rejected, some other test failure. Means: not ready for use work-in-progress and removed work-in-progress labels Apr 5, 2019
@steveloughran
Copy link
Contributor Author

Aaron has reported a failure, marking as failed

LOG.info("0-byte file has been created: {}", touchStatus);
fs.delete(path, false);
// now complete the upload
mpu.complete(path, handles, upload1);
Copy link

Choose a reason for hiding this comment

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

Is there anything we can assert about the PathHandle returned here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that it's not empty?

Copy link

Choose a reason for hiding this comment

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

That you can use it to open the file again and read it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You may be able to use a PathHandle but these aren't, are they? They're PathHandles: Serializable representations of an uploaded file part.

Copy link

@ehiggs ehiggs Apr 24, 2019

Choose a reason for hiding this comment

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

No, I mean mpu.complete returns a PathHandle. The part handles are PartHandles. Indeed PartHandles aren't useful out of the context of putPart (intentionally). But PathHandle is indeed useful and can be used to open the file to make sure it's the same file.

We use the path later to get the mpuStatus, so maybe this is just moot.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think I fully understand pathhandles. I thought that was an HDFS thing only right, or is there something obvious I haven't noticed?

Pauses, looks at code. I see: S3A MPU returns the etag, which isn't enough to refer to it when reopening.

We've been doing work on S3 & versioning now: one thing I'd like to get back from the upload is a reference which can be guaranteed to open that specific file, or failfast if it has changed; something like (path, etag, version). Returning these immediately from the upload in an S3AFileStatus would be one approach, but a pathhandle for S3A which contained all of those would be exactly what someone needs, isn't it?

Do you fancy getting busy on that?

Copy link

Choose a reason for hiding this comment

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

one thing I'd like to get back from the upload is a reference which can be guaranteed to open that specific file

That does sound better. We should make a ticket as soon as apache jira is back online.

@hadoop-yetus
Copy link

🎊 +1 overall

Vote Subsystem Runtime Comment
0 reexec 57 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 1 new or modified test files.
_ trunk Compile Tests _
+1 mvninstall 1125 trunk passed
+1 compile 33 trunk passed
+1 checkstyle 19 trunk passed
+1 mvnsite 42 trunk passed
+1 shadedclient 784 branch has no errors when building and testing our client artifacts.
+1 javadoc 21 trunk passed
0 spotbugs 55 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 54 trunk passed
_ Patch Compile Tests _
+1 mvninstall 35 the patch passed
+1 compile 32 the patch passed
+1 javac 32 the patch passed
+1 checkstyle 15 the patch passed
+1 mvnsite 32 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedclient 713 patch has no errors when building and testing our client artifacts.
+1 javadoc 21 the patch passed
+1 findbugs 66 the patch passed
_ Other Tests _
+1 unit 277 hadoop-aws in the patch passed.
+1 asflicense 25 The patch does not generate ASF License warnings.
3426
Subsystem Report/Notes
Docker Client=18.09.8 Server=18.09.8 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-609/2/artifact/out/Dockerfile
GITHUB PR #609
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux 0b7b25039e89 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 / cd967c7
Default Java 1.8.0_212
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-609/2/testReport/
Max. process+thread count 411 (vs. ulimit of 5500)
modules C: hadoop-tools/hadoop-aws U: hadoop-tools/hadoop-aws
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-609/2/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 81 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 1 new or modified test files.
_ trunk Compile Tests _
+1 mvninstall 1305 trunk passed
+1 compile 40 trunk passed
+1 checkstyle 23 trunk passed
+1 mvnsite 46 trunk passed
+1 shadedclient 822 branch has no errors when building and testing our client artifacts.
+1 javadoc 25 trunk passed
0 spotbugs 70 Used deprecated FindBugs config; considering switching to SpotBugs.
-1 findbugs 67 hadoop-tools/hadoop-aws in trunk has 1 extant findbugs warnings.
_ Patch Compile Tests _
+1 mvninstall 39 the patch passed
+1 compile 37 the patch passed
+1 javac 37 the patch passed
+1 checkstyle 21 the patch passed
+1 mvnsite 45 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedclient 901 patch has no errors when building and testing our client artifacts.
+1 javadoc 27 the patch passed
+1 findbugs 74 the patch passed
_ Other Tests _
+1 unit 294 hadoop-aws in the patch passed.
+1 asflicense 28 The patch does not generate ASF License warnings.
3951
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-609/3/artifact/out/Dockerfile
GITHUB PR #609
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux 2b6db0ae4f72 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 / c7c7a88
Default Java 1.8.0_212
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-609/3/artifact/out/branch-findbugs-hadoop-tools_hadoop-aws-warnings.html
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-609/3/testReport/
Max. process+thread count 349 (vs. ulimit of 5500)
modules C: hadoop-tools/hadoop-aws U: hadoop-tools/hadoop-aws
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-609/3/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 168 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 1 new or modified test files.
_ trunk Compile Tests _
+1 mvninstall 1411 trunk passed
+1 compile 38 trunk passed
+1 checkstyle 30 trunk passed
+1 mvnsite 55 trunk passed
+1 shadedclient 902 branch has no errors when building and testing our client artifacts.
+1 javadoc 28 trunk passed
0 spotbugs 64 Used deprecated FindBugs config; considering switching to SpotBugs.
-1 findbugs 62 hadoop-tools/hadoop-aws in trunk has 1 extant findbugs warnings.
_ Patch Compile Tests _
+1 mvninstall 35 the patch passed
+1 compile 36 the patch passed
+1 javac 36 the patch passed
+1 checkstyle 21 the patch passed
+1 mvnsite 42 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedclient 934 patch has no errors when building and testing our client artifacts.
+1 javadoc 29 the patch passed
+1 findbugs 74 the patch passed
_ Other Tests _
+1 unit 295 hadoop-aws in the patch passed.
+1 asflicense 36 The patch does not generate ASF License warnings.
4268
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-609/4/artifact/out/Dockerfile
GITHUB PR #609
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux ec74f0e23d67 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / e20b195
Default Java 1.8.0_212
findbugs https://builds.apache.org/job/hadoop-multibranch/job/PR-609/4/artifact/out/branch-findbugs-hadoop-tools_hadoop-aws-warnings.html
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-609/4/testReport/
Max. process+thread count 323 (vs. ulimit of 5500)
modules C: hadoop-tools/hadoop-aws U: hadoop-tools/hadoop-aws
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-609/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 103 Docker mode activated.
_ Prechecks _
+1 dupname 1 No case conflicting files found.
+1 @author 0 The patch does not contain any @author tags.
+1 test4tests 0 The patch appears to include 1 new or modified test files.
_ trunk Compile Tests _
+1 mvninstall 1257 trunk passed
+1 compile 31 trunk passed
+1 checkstyle 21 trunk passed
+1 mvnsite 35 trunk passed
+1 shadedclient 775 branch has no errors when building and testing our client artifacts.
+1 javadoc 24 trunk passed
0 spotbugs 55 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 54 trunk passed
_ Patch Compile Tests _
+1 mvninstall 31 the patch passed
+1 compile 26 the patch passed
+1 javac 26 the patch passed
+1 checkstyle 17 the patch passed
+1 mvnsite 30 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedclient 805 patch has no errors when building and testing our client artifacts.
+1 javadoc 22 the patch passed
+1 findbugs 59 the patch passed
_ Other Tests _
+1 unit 281 hadoop-aws in the patch passed.
+1 asflicense 30 The patch does not generate ASF License warnings.
3693
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-609/5/artifact/out/Dockerfile
GITHUB PR #609
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux 57d7b489d4ad 4.15.0-48-generic #51-Ubuntu SMP Wed Apr 3 08:28:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality personality/hadoop.sh
git revision trunk / b0131bc
Default Java 1.8.0_212
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-609/5/testReport/
Max. process+thread count 340 (vs. ulimit of 5500)
modules C: hadoop-tools/hadoop-aws U: hadoop-tools/hadoop-aws
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-609/5/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 91 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 1 new or modified test files.
_ trunk Compile Tests _
+1 mvninstall 1235 trunk passed
+1 compile 37 trunk passed
+1 checkstyle 23 trunk passed
+1 mvnsite 37 trunk passed
+1 shadedclient 772 branch has no errors when building and testing our client artifacts.
+1 javadoc 24 trunk passed
0 spotbugs 58 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 55 trunk passed
_ Patch Compile Tests _
+1 mvninstall 32 the patch passed
+1 compile 26 the patch passed
+1 javac 26 the patch passed
+1 checkstyle 17 the patch passed
+1 mvnsite 30 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedclient 848 patch has no errors when building and testing our client artifacts.
+1 javadoc 27 the patch passed
+1 findbugs 76 the patch passed
_ Other Tests _
+1 unit 93 hadoop-aws in the patch passed.
+1 asflicense 30 The patch does not generate ASF License warnings.
3551
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-609/6/artifact/out/Dockerfile
GITHUB PR #609
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux 5608c1a354dd 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 / e356e4f
Default Java 1.8.0_222
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-609/6/testReport/
Max. process+thread count 306 (vs. ulimit of 5500)
modules C: hadoop-tools/hadoop-aws U: hadoop-tools/hadoop-aws
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-609/6/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 107 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 1 new or modified test files.
_ trunk Compile Tests _
+1 mvninstall 1214 trunk passed
+1 compile 30 trunk passed
+1 checkstyle 22 trunk passed
+1 mvnsite 36 trunk passed
+1 shadedclient 812 branch has no errors when building and testing our client artifacts.
+1 javadoc 24 trunk passed
0 spotbugs 58 Used deprecated FindBugs config; considering switching to SpotBugs.
+1 findbugs 56 trunk passed
_ Patch Compile Tests _
+1 mvninstall 32 the patch passed
+1 compile 26 the patch passed
+1 javac 26 the patch passed
+1 checkstyle 19 the patch passed
+1 mvnsite 31 the patch passed
+1 whitespace 0 The patch has no whitespace issues.
+1 shadedclient 833 patch has no errors when building and testing our client artifacts.
+1 javadoc 22 the patch passed
+1 findbugs 61 the patch passed
_ Other Tests _
+1 unit 70 hadoop-aws in the patch passed.
+1 asflicense 28 The patch does not generate ASF License warnings.
3508
Subsystem Report/Notes
Docker Client=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-609/7/artifact/out/Dockerfile
GITHUB PR #609
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
uname Linux a74ea948554c 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 / 094d736
Default Java 1.8.0_222
Test Results https://builds.apache.org/job/hadoop-multibranch/job/PR-609/7/testReport/
Max. process+thread count 342 (vs. ulimit of 5500)
modules C: hadoop-tools/hadoop-aws U: hadoop-tools/hadoop-aws
Console output https://builds.apache.org/job/hadoop-multibranch/job/PR-609/7/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.

@ehiggs
Copy link

ehiggs commented Aug 21, 2019

LGTM!

@ehiggs
Copy link

ehiggs commented Aug 22, 2019

Merged.

@apache apache deleted a comment from hadoop-yetus Sep 3, 2019
@apache apache deleted a comment from hadoop-yetus Sep 3, 2019
@apache apache deleted a comment from hadoop-yetus Sep 3, 2019
@steveloughran
Copy link
Contributor Author

ok, if this doesn't work as is -what should our next step be?

shanthoosh pushed a commit to shanthoosh/hadoop that referenced this pull request Oct 15, 2019
…sNotFound on deserial

Exception type was serialized as a Class. However in case of Exceptions defined in non-samza-related or user-defined libs, the ExceptionEvent fails to be serialized.

Author: rmatharu@linkedin.com <rmatharu@linkedin.com>

Reviewers: Jagadish<jagadish@apache.org>

Closes apache#609 from rmatharu/stringclasstype
@steveloughran steveloughran deleted the s3/HADOOP-16193-MPU-overwrite-test branch October 15, 2021 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed yetus rejected, some other test failure. Means: not ready for use fs/s3 changes related to hadoop-aws; submitter must declare test endpoint
Projects
None yet
4 participants