Skip to content

Commit

Permalink
rptest: use delete.retention.ms in KafkaCliTools.create_topic()
Browse files Browse the repository at this point in the history
  • Loading branch information
WillemKauf committed Nov 21, 2024
1 parent 2f1d113 commit 564a424
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/rptest/clients/kafka_cli_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ def create_topic(self, spec: TopicSpec):
args += ["--config", f"retention.ms={spec.retention_ms}"]
if spec.max_message_bytes:
args += ["--config", f"max.message.bytes={spec.max_message_bytes}"]
if spec.delete_retention_ms:
args += [
"--config", f"delete.retention.ms={spec.delete_retention_ms}"
]
return self._run("kafka-topics.sh", args, desc="create_topic")

def create_topic_partitions(self, topic: str, partitions: int):
Expand Down

0 comments on commit 564a424

Please sign in to comment.