-
Notifications
You must be signed in to change notification settings - Fork 85
feat: Adding API for AbortMultipartUpload. #3361
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
base: mpu-feature-3
Are you sure you want to change the base?
Conversation
| */ | ||
| @BetaApi | ||
| public abstract AbortMultipartUploadResponse abortMultipartUpload( | ||
| AbortMultipartUploadRequest request) throws IOException, NoSuchAlgorithmException; |
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.
We should never throw a NoSuchAlgorithmException. What necessitates this being declared here?
| } | ||
|
|
||
| /** A builder for creating {@link AbortMultipartUploadRequest} instances. */ | ||
| public static class Builder { |
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.
| public static class Builder { | |
| @BetaApi | |
| public static final class Builder { |
| Map<String, String> extensionHeaders = getGenericExtensionHeader(options); | ||
|
|
||
| HttpRequest httpRequest = requestFactory.buildDeleteRequest(new GenericUrl(abortUri)); | ||
| httpRequest.getHeaders().setContentType(contentType); |
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.
DELETEs don't have bodies, do we need to set the content-type for GCS? If not, please remove.
| throws IOException, NoSuchAlgorithmException { | ||
|
|
||
| return retrier.run( | ||
| Retrying.alwaysRetry(), |
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.
Same as list, this should be options.getRetryAlgorithmManager().idempotent()
| + " <Part>\n" | ||
| + " <PartNumber>1</PartNumber>\n" | ||
| + " <ETag>\"etag\"</ETag>\n" | ||
| + " <ETag>etag</ETag>\n" |
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.
Can these two changes be moved back to the list PR since they're related to that?
Refer: Support XML MPU in GCS Java SDK #3348