Compare commits

...

1 Commits

Author SHA1 Message Date
Arseny Sher
d93beba6b5 Try to fix test_readonly_node_gc flakiness.
Probably CI is just too slow, increase the lease.
2024-09-20 12:45:57 +03:00

View File

@@ -139,7 +139,7 @@ def test_readonly_node_gc(neon_env_builder: NeonEnvBuilder):
"image_creation_threshold": "1", "image_creation_threshold": "1",
"image_layer_creation_check_threshold": "0", "image_layer_creation_check_threshold": "0",
# Short lease length to fit test. # Short lease length to fit test.
"lsn_lease_length": "3s", "lsn_lease_length": "8s",
}, },
initial_tenant_shard_count=2, initial_tenant_shard_count=2,
) )
@@ -205,7 +205,7 @@ def test_readonly_node_gc(neon_env_builder: NeonEnvBuilder):
generate_updates_on_main(env, ep_main, i, end=100) generate_updates_on_main(env, ep_main, i, end=100)
# Now trigger GC again, layers should be removed. # Now trigger GC again, layers should be removed.
time.sleep(4) time.sleep(8)
for shard, ps in tenant_get_shards(env, env.initial_tenant): for shard, ps in tenant_get_shards(env, env.initial_tenant):
client = ps.http_client() client = ps.http_client()
gc_result = client.timeline_gc(shard, env.initial_timeline, 0) gc_result = client.timeline_gc(shard, env.initial_timeline, 0)