Skip to content

Commit

Permalink
ducky: make EPOCH optional for rpk.describe_topic
Browse files Browse the repository at this point in the history
  • Loading branch information
rystsov committed Jan 26, 2023
1 parent 0cd9c3b commit 0611dd0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/rptest/clients/rpk.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,9 @@ def int_or_none(value):

missing_columns = expected_columns - received_columns
# sometimes LSO is present, sometimes it isn't
missing_columns = missing_columns - {"LAST-STABLE-OFFSET"}
# same is true for EPOCH:
# https://github.com/redpanda-data/redpanda/issues/8381#issuecomment-1403051606
missing_columns = missing_columns - {"LAST-STABLE-OFFSET", "EPOCH"}

if len(missing_columns) != 0:
missing_columns = ",".join(missing_columns)
Expand All @@ -364,6 +366,7 @@ def int_or_none(value):
for row in table.rows:
obj = dict()
obj["LAST-STABLE-OFFSET"] = "-"
obj["EPOCH"] = "-1"
for i in range(0, len(table.columns)):
obj[table.columns[i].name] = row[i]

Expand Down

0 comments on commit 0611dd0

Please sign in to comment.