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/09/25 14:37:00 UTC
[jira] [Assigned] (KAFKA-21164) Consider using another anchor to replace lastModified
[ https://issues.apache.org/jira/browse/KAFKA-21164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Muralidhar Basani reassigned KAFKA-21164:
-----------------------------------------
Assignee: Muralidhar Basani (was: Chia-Ping Tsai)
> 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
>
> {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
(v8.20.10#820010)