Akshat-Jain commented on code in PR #16481:
URL: https://github.com/apache/druid/pull/16481#discussion_r1627923604


##########
extensions-core/s3-extensions/src/main/java/org/apache/druid/storage/s3/output/RetryableS3OutputStream.java:
##########
@@ -269,52 +213,74 @@ public void close() throws IOException
     // Closeables are closed in LIFO order
     closer.register(() -> {
       // This should be emitted as a metric
+      long totalChunkSize = (currentChunk.id - 1) * chunkSize + 
currentChunk.length();

Review Comment:
   > To me, having the map seems cleaner as we know which future belongs to 
which chunk
   
   @kfaraz The returned future (if successful) contains UploadPartResult which 
contains the partNumber which is the chunk ID, if that helps.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to