mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-06 04:52:55 +00:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user