You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Muralidhar Basani (Jira)" <ji...@apache.org> on 2026/10/29 15:31:00 UTC
[jira] [Commented] (KAFKA-21164) Consider using another anchor to replace lastModified
[ https://issues.apache.org/jira/browse/KAFKA-21164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18134273#comment-18134273 ]
Muralidhar Basani commented on KAFKA-21164:
-------------------------------------------
KIP - https://cwiki.apache.org/confluence/spaces/KAFKA/pages/451979130/KIP-1385+Measure+local.retention.ms+from+remote+upload+time+instead+of+record+timestamps
> Consider using another anchor to replace lastModified
> -----------------------------------------------------
>
> Key: KAFKA-21164
> URL: https://issues.apache.org/jira/browse/KAFKA-21164
> Project: Kafka
> Issue Type: Improvement
> Reporter: Chia-Ping Tsai
> Assignee: Muralidhar Basani
> Priority: Minor
> Labels: need-kip
>
> {code:java}
> if (startMs < anchorTimestamp) {
> if (remoteLogEnabledAndRemoteCopyEnabled) {
> anchorTimestamp = segment.lastModified();
> futureTimestampLogger.warn("{} contains future timestamp(s), using lastModified time {} as the retention anchor", segment, anchorTimestamp);
> } else {
> futureTimestampLogger.warn("{} contains future timestamp(s), making it ineligible to be deleted", segment);
> }
> } {code}
> the critical code is listed above, and related discussion is here (https://github.com/apache/kafka/pull/22873#discussion_r4100354665)
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)