mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-09 06:22:57 +00:00
Remove [Un]Loaded timeline code (#2359)
This commit is contained in:
committed by
Kirill Bulatov
parent
f78a542cba
commit
2db20e5587
@@ -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}")
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user