Skip to content

Commit 9502ac3

Browse files
authored
fix(s3stream): report compaction delay after two compaction period (#2242)
Signed-off-by: Shichao Nie <[email protected]>
1 parent 50946bf commit 9502ac3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

s3stream/src/main/java/com/automq/stream/s3/compact/CompactionManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public void start() {
148148
}
149149
data.sort(Comparator.comparingLong(S3ObjectMetadata::committedTimestamp));
150150
this.compactionDelayTime = System.currentTimeMillis() - data.get(0).committedTimestamp();
151-
}).join(), 1, 1, TimeUnit.MINUTES);
151+
}).join(), (long) this.compactionInterval * 2, 1, TimeUnit.MINUTES);
152152
}
153153

154154
void scheduleNextCompaction(long delayMillis) {

0 commit comments

Comments
 (0)