From af9038831e045652f6ba4054c2fce6014c8ee3a1 Mon Sep 17 00:00:00 2001 From: Yuval Lifshitz Date: Wed, 16 Jul 2025 14:51:22 +0000 Subject: [PATCH] rgw/test/notification: add more info when retry test fail Signed-off-by: Yuval Lifshitz --- src/test/rgw/bucket_notification/test_bn.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/test/rgw/bucket_notification/test_bn.py b/src/test/rgw/bucket_notification/test_bn.py index 4f5fd92a292..229dc316481 100644 --- a/src/test/rgw/bucket_notification/test_bn.py +++ b/src/test/rgw/bucket_notification/test_bn.py @@ -572,7 +572,15 @@ def get_stats_persistent_topic(topic_name, assert_entries_number=None): assert_equal(result[1], 0) parsed_result = json.loads(result[0]) if assert_entries_number: - assert_equal(parsed_result['Topic Stats']['Entries'], assert_entries_number) + actual_number = parsed_result['Topic Stats']['Entries'] + if actual_number != assert_entries_number: + log.warning('Topic stats: %s', parsed_result) + result = admin(['topic', 'dump', '--topic', topic_name], get_config_cluster()) + parsed_result = json.loads(result[0]) + log.warning('Topic dump:') + for entry in parsed_result: + log.warning(entry) + assert_equal(actual_number, assert_entries_number) return parsed_result -- 2.39.5