Skip to content

Commit

Permalink
fix(s3stream): prevent sort on unmodifiable list; delete unused code
Browse files Browse the repository at this point in the history
Signed-off-by: Shichao Nie <niesc@automq.com>
  • Loading branch information
SCNieh authored and daniel-y committed Oct 26, 2023
1 parent 3ad0d6a commit 06fec55
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 201 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private CompletableFuture<CompactResult> compact() {
List<Long> streamIds = objectMetadataList.stream().flatMap(e -> e.getOffsetRanges().stream())
.map(StreamOffsetRange::getStreamId).distinct().toList();
return this.streamManager.getStreams(streamIds).thenApplyAsync(streamMetadataList -> {
List<S3ObjectMetadata> s3ObjectMetadataList = objectMetadataList;
List<S3ObjectMetadata> s3ObjectMetadataList = new ArrayList<>(objectMetadataList);
if (s3ObjectMetadataList.isEmpty()) {
logger.info("No WAL objects to compact");
return CompactResult.SKIPPED;
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 06fec55

Please sign in to comment.