fix(test_ondemand_download_timetravel): occasionally fails with slightly higher physical size (#6687)

This commit is contained in:
Christian Schwarz
2024-02-09 20:09:37 +01:00
committed by GitHub
parent 1bb9abebf2
commit ca818c8bd7

View File

@@ -197,6 +197,14 @@ def test_ondemand_download_timetravel(neon_env_builder: NeonEnvBuilder):
##### Stop the first pageserver instance, erase all its data
env.endpoints.stop_all()
# Stop safekeepers and take another checkpoint. The endpoints might
# have written a few more bytes during shutdown.
for sk in env.safekeepers:
sk.stop()
client.timeline_checkpoint(tenant_id, timeline_id)
current_lsn = Lsn(client.timeline_detail(tenant_id, timeline_id)["last_record_lsn"])
# wait until pageserver has successfully uploaded all the data to remote storage
wait_for_upload(client, tenant_id, timeline_id, current_lsn)