Skip to content

Commit c604fec

Browse files
authored
fix(core): fix time unit (#2092)
Signed-off-by: Shichao Nie <[email protected]>
1 parent b2dc440 commit c604fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metadata/src/main/java/org/apache/kafka/controller/stream/S3ObjectControlManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ public ControllerResult<Void> checkS3ObjectsLifecycle() {
406406
preparedObjectsTimeouts.put(obj.getObjectId(), newPreparedObjectTimeout(obj.getObjectId(), obj.getTimestamp()));
407407
}
408408
}
409-
if (now - lastPreparedObjectsSwitchTimestamp > TimeUnit.HOURS.toMillis(60)) {
409+
if (now - lastPreparedObjectsSwitchTimestamp > TimeUnit.MINUTES.toMillis(60)) {
410410
// The preparedObjectsTimeouts isn't a Timeline struct, so it's not consistent with the preparedObjects0/1.
411411
// Consider the following scenario:
412412
// 1. Prepare(obj1), add timeout check.

0 commit comments

Comments
 (0)