There are some use cases where it is desirable to have a topic that supports both compact and delete policies, i.e., any topic that wants to be compacted by key, but also wants keys that haven't been updated for some time to be automatically expired.
Add a new compact_and_delete option to cleanup.policy. When set, both compact and delete cleanup strategies should run. This change needs to guarantee thread-safety.
- is related to
KAFKA-4273 Streams DSL - Add TTL / retention period support for intermediate topics and state stores
- links to