[ https://issues.apache.org/jira/browse/KAFKA-4099?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15450309#comment-15450309 ]
Jun Rao commented on KAFKA-4099: -------------------------------- [~becket_qin], thanks for the proposal. Your suggestion sounds reasonable to me. It should cover the common usage of log based rolling. One case that this doesn't quite cover is that if the timestamp of the first message is large and a message with a much smaller timestamp shows up later. In this case, the rolling of the segment may not be quick enough. However, that should be rare. So, could you email the KIP mailing thread about this change and provide a patch? > Change the time based log rolling to base on the file create time instead of > timestamp of the first message. > ------------------------------------------------------------------------------------------------------------ > > Key: KAFKA-4099 > URL: https://issues.apache.org/jira/browse/KAFKA-4099 > Project: Kafka > Issue Type: Bug > Components: core > Reporter: Jiangjie Qin > Assignee: Jiangjie Qin > Fix For: 0.10.1.0 > > > This is an issue introduced in KAFKA-3163. When partition relocation occurs, > the newly created replica may have messages with old timestamp and cause the > log segment rolling for each message. The fix is to change the log rolling > behavior back to based on segment create time. -- This message was sent by Atlassian JIRA (v6.3.4#6332)