mehakmeet commented on a change in pull request #4045: URL: https://github.com/apache/hadoop/pull/4045#discussion_r818663529
########## File path: hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/impl/DeleteOperation.java ########## @@ -382,10 +381,8 @@ private void deleteObjectAtPath( */ @Retries.RetryTranslated private void asyncDeleteAction( - final List<DeleteEntry> keyList, - final boolean auditDeletedKeys) + final List<DeleteEntry> keyList) Review comment: Javadoc correction: "auditDeletedKeys" was removed from params ########## File path: hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/impl/DeleteOperation.java ########## @@ -397,48 +394,25 @@ private void asyncDeleteAction( .map(e -> e.keyVersion) .collect(Collectors.toList()); LOG.debug("Deleting of {} file objects", files.size()); - result = Invoker.once("Remove S3 Files", + Invoker.once("Remove S3 Files", Review comment: "result" variable can be removed since we aren't using it anymore. ########## File path: hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/Lists.java ########## @@ -232,4 +232,20 @@ private static int saturatedCast(long value) { return addAll(addTo, elementsToAdd.iterator()); } + public static <T> List<List<T>> partition(List<T> originalList, int pageSize) { Review comment: Javadoc ########## File path: hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/TestLists.java ########## @@ -79,6 +81,39 @@ public void testItrLinkedLists() { Assert.assertEquals(4, list.size()); } + @Test + public void testListsPartition() { Review comment: have a test with pageSize>originalList.size() -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org