Skip to content

Commit

Permalink
wait for tenant to be active before polling for timeline absence
Browse files Browse the repository at this point in the history
  • Loading branch information
LizardWizzard committed Jul 31, 2023
1 parent 705ae2d commit 039fce1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test_runner/regress/test_timeline_delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,12 @@ def test_delete_timeline_exercise_crash_safety_failpoints(
if check is Check.RETRY_WITH_RESTART:
env.pageserver.stop()
env.pageserver.start()
if failpoint == "timeline-delete-before-index-deleted-at":
# We crashed before persisting this to remote storage, need to retry delete request

# Wait till tenant is loaded. Shouldnt take longer than 2 seconds (we shouldnt block tenant loading)
wait_until_tenant_active(ps_http, env.initial_tenant, iterations=2)
# Wait till tenant is loaded. Shouldnt take longer than 2 seconds
wait_until_tenant_active(ps_http, env.initial_tenant, iterations=2)

if failpoint == "timeline-delete-before-index-deleted-at":
# We crashed before persisting this to remote storage, need to retry delete request
timeline_delete_wait_completed(ps_http, env.initial_tenant, timeline_id)
else:
# Pageserver should've resumed deletion after restart.
Expand Down

0 comments on commit 039fce1

Please sign in to comment.