mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-17 05:00:38 +00:00
Before this PR, when we'd use `attachment_service/attach-hook` + `page_server_mgmt_api/v1/tenant/:tenant/detach` to detach a tenant shard, the tenant was still in attachments.json with `generation_pageserver=None`. When we'd then restart attachment_service, the tenant shard id would be again returned from `/re-attach`. Admittedly, I haven't fully understood the reconciliation logic yet, but, this patch seems to do what I need it to do. This problem is blocking https://github.com/neondatabase/neon/pull/6214