mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 09:22:55 +00:00
Try to fix test_readonly_node_gc flakiness.
Probably CI is just too slow, increase the lease.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user