[ https://issues.apache.org/jira/browse/KAFKA-10889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17255919#comment-17255919 ]
Jiangjie Qin commented on KAFKA-10889: -------------------------------------- [~wenbing.shen] You can achieve this by setting the {{message.timestamp.type}} to {{LogAppendTime}}. And add the create time to the message header / value. The caveat is that when you try to seek by timestamp, you will only be able to seek by log append time in this case. The reason that default value of {{message.timestamp.type}} was set to {{CreateTime}} was people usually care more about the timestamp they explicitly set. That means users usually want to be able to search messages by those specified timestamps, and also want the brokers treat the messages based on those timestamps. > The log cleaner is not working for topic partitions > --------------------------------------------------- > > Key: KAFKA-10889 > URL: https://issues.apache.org/jira/browse/KAFKA-10889 > Project: Kafka > Issue Type: Bug > Components: log cleaner > Affects Versions: 2.0.0 > Reporter: Wenbing Shen > Assignee: Wenbing Shen > Priority: Blocker > Attachments: 0880c08b0110fcdd9b0c.png, 0880c08b0110fcddfb0b.png, > image-2020-12-28-17-17-15-947.png > > > * I have a topic that is reserved for the default of 7 days, but the log > exists from October 26th to December 25th today.The log cleaner doesn't seem > to be working on it.This seems to be an underlying problem in Kafka. -- This message was sent by Atlassian Jira (v8.3.4#803005)