Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Implement and test S3 Sink, with usage in runtime. #278
Implement and test S3 Sink, with usage in runtime. #278
Changes from 6 commits
87f3a2b
f36dcbb
aa7b4f4
babcab8
31e525d
4ad13fd
c41ef45
57c8978
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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 think adding a computed property to determine if the upload was successful, defined in terms of the upload ID, would be good. It will also allow us to remove this comment.
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 think there's an opportunity to improve this function. Something along the lines of:
buf
,buf_
,bytes_of_buf
, andbuf_size_
are very confusing.offset
parameter is being used.std::copy_n
instead ofstd::copy
.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.
offset
is not being used because this is an override and it is needed forFileSink::write()
.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.
The same upload ID applies to all parts of the object, right? So if we generate an upload ID and a part fails, why would we generate another upload ID (or only assign it if it succeeded)? I'm not sure it's meaningful because what if the second part fails -- the upload ID will not change anyway.
We can probably create a computed property:
Have
create_multipart_object
throw an exception. This function already catches and logs, so we're good, and then: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 like it.