Skip to content

Commit

Permalink
fix s3 infinite loop bug for filelist (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
dihu-linkedin authored Aug 9, 2022
1 parent 5bedbb8 commit 41f4c78
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ private List<String> getFilesList(String finalPrefix) {
LOG.debug("Listing object by prefix: {}", finalPrefix);
do {
if (listObjectsV2Response != null) {
request = builder.continuationToken(listObjectsV2Response.continuationToken()).build();
request = builder.continuationToken(listObjectsV2Response.nextContinuationToken()).build();
}
listObjectsV2Response = s3Client.listObjectsV2(request);
listObjectsV2Response.contents().forEach(f -> {
Expand Down

0 comments on commit 41f4c78

Please sign in to comment.