fix(test): force L0 compaction before gc-compaction (#11143)

## Problem

Fix test flakyness of `test_gc_feedback`

Closes: https://github.com/neondatabase/neon/issues/11153

## Summary of changes

Looking at the log, gc-compaction is interrupted by L0 compaction.

Signed-off-by: Alex Chi Z <chi@neon.tech>
This commit is contained in:
Alex Chi Z.
2025-03-10 16:03:49 -04:00
committed by GitHub
parent fb1957936c
commit 3451bdd3d2

View File

@@ -69,6 +69,9 @@ def gc_feedback_impl(neon_env_builder: NeonEnvBuilder, zenbenchmark: NeonBenchma
env.create_branch("child")
branch_created += 1
# Ensure L0 layers are compacted so that gc-compaction doesn't get preempted.
client.timeline_checkpoint(tenant_id, timeline_id, force_l0_compaction=True)
max_num_of_deltas_above_image = 0
max_total_num_of_deltas = 0
for key_range in client.perf_info(tenant_id, timeline_id):