From 0611dd0837eeb14b68cccce1f87fc1b8edde987d Mon Sep 17 00:00:00 2001 From: Denis Rystsov Date: Thu, 26 Jan 2023 14:46:40 -0800 Subject: [PATCH] ducky: make EPOCH optional for rpk.describe_topic fixes https://github.com/redpanda-data/redpanda/issues/8381 --- tests/rptest/clients/rpk.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/rptest/clients/rpk.py b/tests/rptest/clients/rpk.py index 1b8a1aaebcbd..dc6d32ddb7e3 100644 --- a/tests/rptest/clients/rpk.py +++ b/tests/rptest/clients/rpk.py @@ -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) @@ -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]