[ https://issues.apache.org/jira/browse/KAFKA-4015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15422445#comment-15422445 ]
ASF GitHub Bot commented on KAFKA-4015: --------------------------------------- GitHub user dguy opened a pull request: https://github.com/apache/kafka/pull/1742 KAFKA-4015: Add new cleanup.policy, compact_and_delete Added compact_and_delete cleanup.policy to LogConfig. Updated LogCleaner.CleanerThread to also run deletion for any topics configured with compact_and_delete. Ensure Log.deleteSegments only runs when delete is enabled. Additional Integration and unit tests to cover new option You can merge this pull request into a Git repository by running: $ git pull https://github.com/dguy/kafka kafka-4015 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/1742.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1742 ---- commit 889f5b8cc763cd488567c6034d8c25be28596ee1 Author: Damian Guy <damian....@gmail.com> Date: 2016-08-05T10:27:12Z enable cleanup.policy=compact_delete ---- > Add new cleanup.policy, compact_and_delete > ------------------------------------------ > > Key: KAFKA-4015 > URL: https://issues.apache.org/jira/browse/KAFKA-4015 > Project: Kafka > Issue Type: New Feature > Components: core > Affects Versions: 0.10.1.0 > Reporter: Damian Guy > Assignee: Damian Guy > Fix For: 0.10.1.0 > > > 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332)