M12.4: retain and settle owned population intervals
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m28s
Foundation / checks (tsan) (push) Failing after 18m22s
Foundation / checks (network) (push) Successful in 20m38s
Foundation / checks (client) (push) Failing after 21m6s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (postgres) (push) Canceled after 46m54s
Foundation / checks (checks) (push) Canceled after 47m3s

This commit is contained in:
dingo
2026-10-17 17:31:05 -04:00
parent 627411983f
commit 0a8962b57e
34 changed files with 1032 additions and 75 deletions
@@ -71,6 +71,8 @@ transition(Postgres& db, const FilesystemObjectStore& objects, const LeaseGrant&
auto state = restore_cellular_payload(*source, *previous);
if (!state)
return std::unexpected(failure(PublicationError::predecessor));
if (!server::population_interval_safe(**state))
return std::unexpected(failure(PublicationError::candidate));
auto population = server::CellularPopulation::create(std::move(*state), policy);
if (!population || (*population)->state().snapshot() != *source)
return std::unexpected(failure(PublicationError::candidate));
@@ -160,6 +162,8 @@ std::expected<CommittedCheckpoint, PopulationPublicationFailure> publish_populat
auto base = restore_population_payload(*source, *previous);
if (!base)
return std::unexpected(failure(PublicationError::predecessor));
if (!batch.conversion && !server::population_interval_safe((*base)->state()))
return std::unexpected(failure(PublicationError::candidate));
auto replay = server::replay_population_batch(**base, batch);
const auto payload = candidate.snapshot();
if (!replay || (*replay)->snapshot() != payload)