mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-25 23:29:59 +00:00
tests: prepare test_tenant_delete_stale_shards for --timelines-onto-safekeepers (#12198)
## Problem The test creates an endpoint and deletes its tenant. The compute cannot stop gracefully because it tries to write a checkpoint shutdown record into the WAL, but the timeline had been already deleted from safekeepers. - Relates to https://github.com/neondatabase/neon/pull/11712 ## Summary of changes Stop the compute before deleting a tenant
This commit is contained in:
@@ -430,6 +430,7 @@ def test_tenant_delete_stale_shards(neon_env_builder: NeonEnvBuilder, pg_bin: Pg
|
|||||||
workload.init()
|
workload.init()
|
||||||
workload.write_rows(256)
|
workload.write_rows(256)
|
||||||
workload.validate()
|
workload.validate()
|
||||||
|
workload.stop()
|
||||||
|
|
||||||
assert_prefix_not_empty(
|
assert_prefix_not_empty(
|
||||||
neon_env_builder.pageserver_remote_storage,
|
neon_env_builder.pageserver_remote_storage,
|
||||||
|
|||||||
Reference in New Issue
Block a user