anantmf commented on a change in pull request #7000: Fix for 
getSingleObjectSummary, replacing keyCount with objectSummaries().size
URL: https://github.com/apache/incubator-druid/pull/7000#discussion_r253891212
 
 

 ##########
 File path: 
extensions-core/s3-extensions/src/main/java/org/apache/druid/storage/s3/S3Utils.java
 ##########
 @@ -251,7 +251,7 @@ public static S3ObjectSummary 
getSingleObjectSummary(ServerSideEncryptingAmazonS
         .withMaxKeys(1);
     final ListObjectsV2Result result = s3Client.listObjectsV2(request);
 
-    if (result.getKeyCount() == 0) {
+    if (result.getObjectSummaries().size() == 0) {
 
 Review comment:
   Added comments.

----------------------------------------------------------------
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

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

Reply via email to