Skip to content

Commit

Permalink
tests: fix RpkTool.group_describe failure
Browse files Browse the repository at this point in the history
If coordinator isn't available, we should retry, not throw.

Fixes redpanda-data#5079
  • Loading branch information
jcsp committed Jul 25, 2022
1 parent 8bcf87f commit c4747e2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/rptest/clients/rpk.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,15 @@ def parse_partition(string):

def try_describe_group(group):
cmd = ["describe", group]
out = self._run_group(cmd)
try:
out = self._run_group(cmd)
except RpkException as e:
if "COORDINATOR_NOT_AVAILABLE" in e.msg:
# Transient, return None to retry
return None
else:
raise

lines = out.splitlines()

group_name = parse_field("GROUP", lines[0])
Expand Down

0 comments on commit c4747e2

Please sign in to comment.