M12.4: atomically publish and recover biological migration pairs
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m21s
Foundation / checks (network) (push) Successful in 20m51s
Foundation / checks (client) (push) Successful in 22m2s
Foundation / checks (tsan) (push) Successful in 22m59s
Foundation / checks (postgres) (push) Successful in 53m40s
Foundation / checks (checks) (push) Successful in 1h7m19s
Foundation / postgres-tools (push) Successful in 29s
Foundation / server-image (push) Successful in 38s
Foundation / image (push) Successful in 4m31s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m21s
Foundation / checks (network) (push) Successful in 20m51s
Foundation / checks (client) (push) Successful in 22m2s
Foundation / checks (tsan) (push) Successful in 22m59s
Foundation / checks (postgres) (push) Successful in 53m40s
Foundation / checks (checks) (push) Successful in 1h7m19s
Foundation / postgres-tools (push) Successful in 29s
Foundation / server-image (push) Successful in 38s
Foundation / image (push) Successful in 4m31s
This commit is contained in:
@@ -74,4 +74,35 @@ retry_cellular_migration_stage(Postgres&, const LeaseGrant&, const CellularMigra
|
||||
[[nodiscard]] std::expected<std::optional<CellularMigrationStage>, RecoveryFailure>
|
||||
load_cellular_migration_stage(Postgres&, const FilesystemObjectStore&, RegionKey, const LeaseGrant&,
|
||||
std::chrono::milliseconds timeout);
|
||||
struct CellularMigrationCommitPrepared {
|
||||
Uuid request{};
|
||||
std::vector<std::uint8_t> source_manifest, destination_manifest;
|
||||
};
|
||||
struct CellularMigrationCommitted {
|
||||
CommittedCheckpoint source, destination;
|
||||
};
|
||||
struct CellularMigrationCommitFailure {
|
||||
PublicationError kind{};
|
||||
LeaseStoreFailure store{};
|
||||
ObjectError object{};
|
||||
CellularMigrationCommitPrepared prepared;
|
||||
};
|
||||
[[nodiscard]] std::expected<CellularMigrationCommitted, CellularMigrationCommitFailure>
|
||||
publish_cellular_migration(Postgres&, const FilesystemObjectStore& source_objects,
|
||||
const FilesystemObjectStore& destination_objects,
|
||||
const LeaseGrant& source_lease, const LeaseGrant& destination_lease,
|
||||
const CommittedCheckpoint& source,
|
||||
const CommittedCheckpoint& destination,
|
||||
const server::CellularMigrationTrace&, const Sha256Digest& build,
|
||||
std::chrono::milliseconds timeout, const PublishHooks& hooks = {});
|
||||
// Both CURRENT fences are separate from the retained manifests' original writers.
|
||||
[[nodiscard]] std::expected<CellularMigrationCommitted, CellularMigrationCommitFailure>
|
||||
retry_cellular_migration_commit(Postgres&, const LeaseGrant& source_lease,
|
||||
const LeaseGrant& destination_lease,
|
||||
const CellularMigrationCommitPrepared&,
|
||||
std::chrono::milliseconds timeout);
|
||||
// True: full paired receipt/replay verified. False: this is another no-tick kind.
|
||||
[[nodiscard]] std::expected<bool, RecoveryFailure> verify_cellular_migration_checkpoint(
|
||||
Postgres&, const FilesystemObjectStore&, const LeaseGrant&, const CommittedCheckpoint&,
|
||||
std::span<const std::uint8_t> payload, std::chrono::milliseconds timeout);
|
||||
} // namespace evo::persistence
|
||||
|
||||
Reference in New Issue
Block a user