From 66f56ddaec25dae216b2c5ebb13822d201ab61a7 Mon Sep 17 00:00:00 2001 From: "Alex Chi Z." <4198311+skyzh@users.noreply.github.com> Date: Fri, 11 Apr 2025 11:20:51 -0400 Subject: [PATCH] fix(pageserver): allow shutdown errors for gc compaction tests (#11530) ## Problem `test_pageserver_compaction_preempt` is flaky. ## Summary of changes Allow the shutdown errors. Signed-off-by: Alex Chi Z --- test_runner/regress/test_compaction.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test_runner/regress/test_compaction.py b/test_runner/regress/test_compaction.py index 087fafb327..84d37de9f1 100644 --- a/test_runner/regress/test_compaction.py +++ b/test_runner/regress/test_compaction.py @@ -162,6 +162,8 @@ def test_pageserver_compaction_preempt( conf = PREEMPT_COMPACTION_TENANT_CONF.copy() env = neon_env_builder.init_start(initial_tenant_conf=conf) + env.pageserver.allowed_errors.append(".*The timeline or pageserver is shutting down.*") + tenant_id = env.initial_tenant timeline_id = env.initial_timeline