Try to fix test_readonly_node_gc flakiness.

Probably CI is just too slow, increase the lease.
This commit is contained in:
Arseny Sher
2024-09-20 12:45:31 +03:00
parent d0cbfda15c
commit d93beba6b5

View File

@@ -139,7 +139,7 @@ def test_readonly_node_gc(neon_env_builder: NeonEnvBuilder):
"image_creation_threshold": "1",
"image_layer_creation_check_threshold": "0",
# Short lease length to fit test.
"lsn_lease_length": "3s",
"lsn_lease_length": "8s",
},
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)
# 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):
client = ps.http_client()
gc_result = client.timeline_gc(shard, env.initial_timeline, 0)