You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2026/09/28 16:51: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=18120265#comment-18120265 ] 

Chia-Ping Tsai commented on KAFKA-21164:
----------------------------------------

I added the label "need-kip" due to this comment (https://github.com/apache/kafka/pull/22873#discussion_r4109605690)

> 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
(v8.20.10#820010)