From 56f27ef3e2107c411221ca3cd207fb2a1535b895 Mon Sep 17 00:00:00 2001 From: Oren Leiman Date: Tue, 25 Nov 2025 19:49:51 -0800 Subject: [PATCH] dt/rp: Filter .cannotrecover files from storage usage post-check Unrecoverable segments aren't included in the disk usage report. Since we don't remove them automatically and they don't get cleaned up automatically, we can ignore them here for now. Fixes: - [CORE-14754] - [CORE-14763] - [CORE-14784] - [CORE-14790] Signed-off-by: Oren Leiman (cherry picked from commit 8511a8e1b745022fc20c03ab7c33c0b4eb54beea) --- tests/rptest/services/redpanda.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/rptest/services/redpanda.py b/tests/rptest/services/redpanda.py index 0084b56e89533..f8a6317b089c6 100644 --- a/tests/rptest/services/redpanda.py +++ b/tests/rptest/services/redpanda.py @@ -4251,6 +4251,11 @@ def tracked(fstat): # happen without placing a lot of restrictions on shutdown. for # the time being just ignore these. return False + if file.suffix == ".cannotrecover": + # Unrecoverable segments aren't included in the disk usage report. + # Since we don't remove them automatically and they don't get + # cleaned up automatically, we can ignore them here for now. + return False return True def inspect_node(node):