Score:0

Very old segments in Kafka

ru flag

I have set my segment retention via (log.retention.ms) for topic to 2h. However I still have a lot of old messages in the message queue and some of the segment data files (data/topic-0/00000000000000658568.log) are older than two months. I was expecting kafka to roll these over, but it doesn't. Why?

HBruijn avatar
in flag
The [`log.retention.[hours|mintes|ms]` directives](https://www.conduktor.io/kafka/kafka-topic-configuration-log-retention/) specify a minimum retention time for messages, in other words the amount of time after which older messages ***may*** be deleted. They don't have the effect that Kafka ***will*** delete messages *immediately* after that time has expired. - *" Time limit can be much greater than expected if the segment is very big (few messages per day in a 1GB segment)."* https://www.conduktor.io/kafka/kafka-topic-configuration-log-retention/
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.