Hello!
I’m seeing ambiguous information on the actual meaning of these two topic properties.
Which is responsible for the actual retention time in a topic, i.e. for how long the messages are stored?
Thank you,
David
The delete.retention.ms
property dictates how long to retain tombstones (special messages with null value signifying deletion) in compacted topics, while retention.ms
dictates how long to retain “regular” (non-tombstone) messages in topics that have the delete
cleanup.policy
set.
The topic’s cleanup.policy
dictates which property applies:
cleanup.policy
=delete
: onlyretention.ms
appliescleanup.policy
=compact
: onlydelete.retention.ms
appliescleanup.policy
=delete,compact
: bothretention.ms
anddelete.retention.ms
apply
Understood, thank you!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.