Ryan Lyu
Ryan Lyu

Reputation: 5135

Kafka configuration: what's the difference between parameter "cleanup.policy" and parameter "log.cleanup.policy"?

There are two parameters to config the Kafka cleanup policy.

What's the difference between them?

enter image description here

Reference

Confluent Platform: Topic Configurations

Upvotes: 0

Views: 187

Answers (1)

OneCricketeer
OneCricketeer

Reputation: 191844

As it says "Server Default Property" - log.cleanup.policy is a broker setting and is the default for all topics

cleanup.policy is a topic setting used for a specific topic

The docs are also wrong (at least, the table). Valid values are ['compact', 'delete', 'compact,delete'] - KIP-71

Upvotes: 1

Related Questions