Skip to content

Commit 116a8c8

Browse files
authored
Merge pull request redpanda-data#27659 from mmaslankaprv/DEVPROD-3366-fix-test-setup
tests: use permissive topic describe when requesting replicas
2 parents d780ab8 + 54c32f8 commit 116a8c8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/rptest/tests/partition_force_reconfiguration_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def setUp(self):
537537

538538
def collect_topic_partition_states(self, topic):
539539
states = {}
540-
for p in self.rpk.describe_topic(topic):
540+
for p in self.rpk.describe_topic(topic, tolerant=True):
541541
states[p.id] = self.admin.get_partition_state(
542542
namespace="kafka",
543543
topic=topic,
@@ -568,6 +568,8 @@ def produce_until_log_eviction(self, topic):
568568

569569
def start_offset_advanced():
570570
states = self.collect_topic_partition_states(topic)
571+
if len(states) == 0:
572+
return False
571573

572574
return all(
573575
r["start_offset"] > 0 for s in states.values() for r in s["replicas"]
@@ -838,7 +840,7 @@ def test_recovery_local_data_missing(self, wait_for_final_manifest_uploads):
838840
admin = self.redpanda._admin
839841
rpk = RpkTool(self.redpanda)
840842
replicas = []
841-
for p in rpk.describe_topic(topic.name):
843+
for p in rpk.describe_topic(topic.name, tolerant=True):
842844
replicas = [int(r) for r in p.replicas]
843845

844846
self.logger.info(f"Test topic {topic.name} replicas: {replicas}")

0 commit comments

Comments
 (0)