Remove [Un]Loaded timeline code (#2359)

This commit is contained in:
Kirill Bulatov
2022-09-01 16:22:22 +03:00
committed by Kirill Bulatov
parent f78a542cba
commit 2db20e5587
12 changed files with 290 additions and 476 deletions

View File

@@ -68,9 +68,11 @@ def test_broken_timeline(neon_env_builder: NeonEnvBuilder):
# But all others are broken
# First timeline would fail instantly due to corrupt metadata file
# First timeline would not get loaded into pageserver due to corrupt metadata file
(_tenant, _timeline, pg) = tenant_timelines[1]
with pytest.raises(Exception, match="Cannot load local timeline") as err:
with pytest.raises(
Exception, match=f"Could not get timeline {timeline1} in tenant {tenant1}"
) as err:
pg.start()
log.info(f"compute startup failed eagerly for timeline with corrupt metadata: {err}")

View File

@@ -93,10 +93,7 @@ def check_client(client: NeonPageserverHttpClient, initial_tenant: ZTenantId):
assert ZTenantId(timeline_details["tenant_id"]) == tenant_id
assert ZTimelineId(timeline_details["timeline_id"]) == timeline_id
local_timeline_details = timeline_details.get("local")
assert local_timeline_details is not None
assert local_timeline_details["timeline_state"] == "Loaded"
assert timeline_details.get("local") is not None
def test_pageserver_http_get_wal_receiver_not_found(neon_simple_env: NeonEnv):