Format cellular publication diagnostics
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (ecs) (push) Successful in 1m58s
Foundation / checks (tsan) (push) Successful in 8m55s
Foundation / checks (client) (push) Successful in 13m17s
Foundation / checks (network) (push) Successful in 15m14s
Foundation / checks (postgres) (push) Failing after 34m1s
Foundation / checks (checks) (push) Successful in 38m3s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (ecs) (push) Successful in 1m58s
Foundation / checks (tsan) (push) Successful in 8m55s
Foundation / checks (client) (push) Successful in 13m17s
Foundation / checks (network) (push) Successful in 15m14s
Foundation / checks (postgres) (push) Failing after 34m1s
Foundation / checks (checks) (push) Successful in 38m3s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
This commit is contained in:
@@ -300,8 +300,7 @@ CellularRegionHost::publish(const CellularBatch& batch,
|
|||||||
const auto grant = authority_.grant();
|
const auto grant = authority_.grant();
|
||||||
if (!status_.ready || !state_ || !committed_ || !grant ||
|
if (!status_.ready || !state_ || !committed_ || !grant ||
|
||||||
!authority_.may_begin_commit(LeaseClock::now()))
|
!authority_.may_begin_commit(LeaseClock::now()))
|
||||||
return std::unexpected{
|
return std::unexpected{CellularPublishFailure{CellularHostError::not_ready, {}, {}, {}}};
|
||||||
CellularPublishFailure{CellularHostError::not_ready, {}, {}, {}}};
|
|
||||||
auto candidate = replay_cellular_batch(*state_, batch);
|
auto candidate = replay_cellular_batch(*state_, batch);
|
||||||
if (!candidate)
|
if (!candidate)
|
||||||
return std::unexpected{
|
return std::unexpected{
|
||||||
@@ -335,10 +334,9 @@ CellularRegionHost::publish(const CellularBatch& batch,
|
|||||||
status_.ready = false;
|
status_.ready = false;
|
||||||
++status_.fences;
|
++status_.fences;
|
||||||
}
|
}
|
||||||
return std::unexpected{CellularPublishFailure{CellularHostError::publication,
|
return std::unexpected{
|
||||||
published.error().kind,
|
CellularPublishFailure{CellularHostError::publication, published.error().kind,
|
||||||
published.error().store,
|
published.error().store, published.error().object}};
|
||||||
published.error().object}};
|
|
||||||
}
|
}
|
||||||
state_ = std::move(*candidate);
|
state_ = std::move(*candidate);
|
||||||
committed_ = published->committed;
|
committed_ = published->committed;
|
||||||
|
|||||||
@@ -142,8 +142,8 @@ void cellular_birth_publication_is_durable() {
|
|||||||
auto message = "cellular host publish failed, error=" +
|
auto message = "cellular host publish failed, error=" +
|
||||||
std::to_string(static_cast<unsigned>(failure.kind));
|
std::to_string(static_cast<unsigned>(failure.kind));
|
||||||
if (failure.publication)
|
if (failure.publication)
|
||||||
message += ", publication=" +
|
message +=
|
||||||
std::to_string(static_cast<unsigned>(*failure.publication));
|
", publication=" + std::to_string(static_cast<unsigned>(*failure.publication));
|
||||||
if (failure.store) {
|
if (failure.store) {
|
||||||
message += ", store=" + std::to_string(static_cast<unsigned>(failure.store->kind));
|
message += ", store=" + std::to_string(static_cast<unsigned>(failure.store->kind));
|
||||||
const auto& state = failure.store->cause.sqlstate;
|
const auto& state = failure.store->cause.sqlstate;
|
||||||
|
|||||||
Reference in New Issue
Block a user