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
HADOOP-16193. add extra S3A MPU test to see what happens if a file is created during the MPU #609
Conversation
… created during the MPU Change-Id: I15942ff8c7a772e1bf718bccbe4a249d20fa3ef2
Tested: S3 ireland. Remember to use -Dscale when running this test suite, even though this case isn't a slow one |
🎊 +1 overall
This message was automatically generated. |
...p-aws/src/test/java/org/apache/hadoop/fs/contract/s3a/ITestS3AContractMultipartUploader.java
Show resolved
Hide resolved
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
🎊 +1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
LGTM! |
Merged. |
ok, if this doesn't work as is -what should our next step be? |
…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
HADOOP-16193. add extra S3A MPU test to see what happens if a file is created during the MPU
Change-Id: I15942ff8c7a772e1bf718bccbe4a249d20fa3ef2