Help Center> Distributed Message Service for Kafka> User Guide (Kuala Lumpur Region)> FAQs> Messages> Why Do Messages Still Exist After the Retention Period Elapses?
Updated on 2022-08-12 GMT+08:00

Why Do Messages Still Exist After the Retention Period Elapses?

Symptom: Messages still exist after reaching the retention period (for example, after 72 hours).

Possible cause 1: The segment files are in use.

Solution: Wait until the segment is no longer in use or delete the topic where messages have reached their retention period.

Possible cause 2: In a topic, there is a message whose CreateTime is a future time. For example, assume that it is January 1, and the CreateTime is February 1. The message will not be aged after 72 hours from now. As a result, messages created subsequently will also not be aged.

Solution: Delete the topic where the CreateTime of a message is a future time.