Set retention policy for Kafka topic

This commit is contained in:
Antonio Andelic 2023-01-04 12:04:00 +00:00
parent aa41e9b775
commit 890f094829

View File

@ -2271,7 +2271,11 @@ def test_kafka_produce_key_timestamp(kafka_cluster):
)
topic_name = "insert3"
kafka_create_topic(admin_client, topic_name)
topic_config = {
# default retention, since predefined timestamp_ms is used.
"retention.ms": "-1",
}
kafka_create_topic(admin_client, topic_name, config=topic_config)
instance.query(
"""