M12.7: bind census evidence to database history domains
Foundation / checks (ecs) (push) Successful in 2m23s
Foundation / checks (deploy) (push) Successful in 4m10s
Foundation / checks (network) (push) Successful in 21m32s
Foundation / checks (client) (push) Successful in 22m14s
Foundation / checks (tsan) (push) Successful in 24m30s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 41m43s
Foundation / checks (postgres) (push) Canceled after 41m39s
Foundation / checks (ecs) (push) Successful in 2m23s
Foundation / checks (deploy) (push) Successful in 4m10s
Foundation / checks (network) (push) Successful in 21m32s
Foundation / checks (client) (push) Successful in 22m14s
Foundation / checks (tsan) (push) Successful in 24m30s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 41m43s
Foundation / checks (postgres) (push) Canceled after 41m39s
This commit is contained in:
@@ -19,7 +19,8 @@
|
||||
# target must have neither `evolution` nor `evolution_restore` and must run the
|
||||
# manifest's server version;
|
||||
# 3. INSTALL, one transaction: the dump, a claim row evolution_restore.claims(NONCE,
|
||||
# unpublished), every lease fenced and every current build retired. From that
|
||||
# unpublished), every lease fenced, every current build retired, and a fresh
|
||||
# history domain with parent/exact-cut provenance for schema-51 bundles. From that
|
||||
# commit on the world is unservable: acquisition, renewal and commits refuse
|
||||
# until publication, whatever happens to any connection or the server (review
|
||||
# M8 follow-up P1). Then the objects are copied;
|
||||
@@ -37,8 +38,9 @@
|
||||
# Cleanup only ever removes what this NONCE owns: the schemas only through a
|
||||
# transaction that locks this NONCE's unpublished claim, the objects directory only
|
||||
# while it carries this NONCE's marker. A competing restore's or provisioner's state
|
||||
# is never touched. The default result is a verbatim, owner-only copy with the
|
||||
# source's world identities, no runtime grants and never served; to run it, clone it
|
||||
# is never touched. The default result retains the source's biological world
|
||||
# identities/bytes, with a fresh history domain when supported, no runtime grants
|
||||
# and never served; to run it, clone it
|
||||
# into an isolated world (tools/backup/verify-backup.sh --isolate).
|
||||
#
|
||||
# --in-place (M8.8 host-loss recovery for dev/stage, ADR-0075) restores the world
|
||||
@@ -233,6 +235,14 @@ INSERT INTO evolution_restore.claims(nonce, state, mode, manifest_sha256, label,
|
||||
FROM evolution.retained_builds b WHERE b.retired_at IS NULL;
|
||||
UPDATE evolution.retained_builds SET retired_at = pg_catalog.clock_timestamp() WHERE retired_at IS NULL;
|
||||
UPDATE evolution.region_leases SET holder = NULL, expires_at = NULL WHERE holder IS NOT NULL;
|
||||
-- New-schema bundles fork their evidence namespace in the install transaction,
|
||||
-- before any build can be readmitted. Legacy bundles acquire an adoption domain
|
||||
-- only if subsequently migrated; no original domain is invented for them.
|
||||
DO \$\$ BEGIN
|
||||
IF pg_catalog.to_regprocedure('evolution.fork_restored_history_v1(uuid)') IS NOT NULL THEN
|
||||
PERFORM evolution.fork_restored_history_v1('$nonce'::uuid);
|
||||
END IF;
|
||||
END \$\$;
|
||||
COMMIT;
|
||||
SQL
|
||||
} > "$work/install.sql"
|
||||
|
||||
Reference in New Issue
Block a user