Skip to content

Commit 41f4c78

Browse files
fix s3 infinite loop bug for filelist (#71)
1 parent 5bedbb8 commit 41f4c78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cdi-core/src/main/java/com/linkedin/cdi/connection/S3Connection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ private List<String> getFilesList(String finalPrefix) {
261261
LOG.debug("Listing object by prefix: {}", finalPrefix);
262262
do {
263263
if (listObjectsV2Response != null) {
264-
request = builder.continuationToken(listObjectsV2Response.continuationToken()).build();
264+
request = builder.continuationToken(listObjectsV2Response.nextContinuationToken()).build();
265265
}
266266
listObjectsV2Response = s3Client.listObjectsV2(request);
267267
listObjectsV2Response.contents().forEach(f -> {

0 commit comments

Comments
 (0)