Skip to content

Commit

Permalink
fix(s3stream): fix compaction read throttle (#564)
Browse files Browse the repository at this point in the history
Signed-off-by: Shichao Nie <[email protected]>
  • Loading branch information
SCNieh authored Nov 3, 2023
1 parent 95d846e commit cc96772
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ void executeCompactionPlans(CommitWALObjectRequest request, List<CompactionPlan>
S3ObjectMetadata metadata = s3ObjectMetadataMap.get(streamDataBlocEntry.getKey());
List<StreamDataBlock> streamDataBlocks = streamDataBlocEntry.getValue();
DataBlockReader reader = new DataBlockReader(metadata, s3Operator);
reader.readBlocks(streamDataBlocks, networkBandwidth);
reader.readBlocks(streamDataBlocks, Math.min(CompactionConstants.S3_OBJECT_MAX_READ_BATCH, networkBandwidth));
}
List<CompletableFuture<StreamObject>> streamObjectCFList = new ArrayList<>();
CompletableFuture<Void> walObjectCF = null;
Expand Down

0 comments on commit cc96772

Please sign in to comment.