ivankelly commented on a change in pull request #1841: Fix flaky test with s3
backend
URL: https://github.com/apache/incubator-pulsar/pull/1841#discussion_r190543401
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/s3offload/S3ManagedLedgerOffloader.java
##########
@@ -172,9 +172,14 @@ static String indexBlockOffloadKey(long ledgerId, UUID
uuid) {
.withUploadId(dataBlockRes.getUploadId())
.withPartETags(etags));
} catch (Throwable t) {
+ try {
+ s3client.abortMultipartUpload(
+ new AbortMultipartUploadRequest(bucket, dataBlockKey,
dataBlockRes.getUploadId()));
+ } catch (Throwable throwable) {
+ log.error("Failed abortMultipartUpload in bucket - {} with
key - {}.",
Review comment:
Add upload ID.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services