Tomasz Kaszuba created KAFKA-14951:
--------------------------------------
Summary: Changing the cleanup.policy on an existing topic from
"delete" to "compact" seems to change it to "compact,delete" even though it
says "compact"
Key: KAFKA-14951
URL: https://issues.apache.org/jira/browse/KAFKA-14951
Project: Kafka
Issue Type: Bug
Affects Versions: 2.8.2
Reporter: Tomasz Kaszuba
We've seemed to have noticed something strange when we change the
cleanup.policy of an existing topic from "delete" to "compact". It seems that
even though the policy is set to "compact" the retention.ms is not ignored and
the topic is still cleaned up when the retention time is hit, suggesting that
the actual policy is "compact, delete" and not "compact".
If this is the case could the metadata return "compact, delete" instead of
"compact" when describing a topic?
I have not found any information if this is normal behavior but I noticed that
this kind of change is blocked in the confluent cloud so perhaps this is a
known issue.
[https://docs.confluent.io/cloud/current/clusters/broker-config.html#custom-topic-settings-for-all-cluster-types]
_You cannot change the {{cleanup.policy}} from {{delete}} to {{compact}} after
a topic has been created_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)