Skip to content

Commit

Permalink
ducktape: retention_policy - wait for controller
Browse files Browse the repository at this point in the history
PR redpanda-data#2428 changed the returned error code so that the error was
retriable with a metadata refresh, but kafka-configs.sh doesn't retry.

Call describe_topic to wait for the controller, as it performs a retry.

Fix redpanda-data#2406

Signed-off-by: Ben Pope <ben@vectorized.io>
  • Loading branch information
BenPope committed Sep 29, 2021
1 parent 02f4eb2 commit c728247
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/rptest/tests/retention_policy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ def test_changing_topic_retention_with_restart(self):
self.redpanda.restart_nodes(self.redpanda.nodes)

kafka_tools = KafkaCliTools(self.redpanda)

# Wait for controller, alter configs doesn't have a retry loop
kafka_tools.describe_topic(self.topic)

# change retention bytes to preserve 15 segments
kafka_tools.alter_topic_config(
self.topic, {
Expand Down

0 comments on commit c728247

Please sign in to comment.