Format clone SQLSTATE check
Foundation / checks (deploy) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 2m3s
Foundation / checks (checks) (push) Failing after 4m9s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (client) (push) Canceled after 5m27s
Foundation / checks (tsan) (push) Canceled after 5m23s
Foundation / checks (network) (push) Canceled after 5m29s
Foundation / checks (postgres) (push) Canceled after 5m28s
Foundation / checks (deploy) (push) Successful in 4s
Foundation / checks (ecs) (push) Successful in 2m3s
Foundation / checks (checks) (push) Failing after 4m9s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (client) (push) Canceled after 5m27s
Foundation / checks (tsan) (push) Canceled after 5m23s
Foundation / checks (network) (push) Canceled after 5m29s
Foundation / checks (postgres) (push) Canceled after 5m28s
This commit is contained in:
@@ -668,8 +668,8 @@ int check_store(const Options& o) {
|
||||
std::printf("database version=%s user=%s ssl=%s\n", row[0].value_or("?").c_str(),
|
||||
row[1].value_or("?").c_str(), row[2].value_or("?").c_str());
|
||||
auto tables = (*db)->query("SELECT 1 FROM evolution.region_heads LIMIT 1", {}, timeout);
|
||||
const bool denied = !tables &&
|
||||
std::string_view(tables.error().sqlstate.data(), 5) == "42501";
|
||||
const bool denied =
|
||||
!tables && std::string_view(tables.error().sqlstate.data(), 5) == "42501";
|
||||
auto head = persistence::load_region_head(**db, o.source.key, timeout);
|
||||
const bool reachable =
|
||||
head || head.error().kind == persistence::LeaseStoreError::not_provisioned;
|
||||
|
||||
Reference in New Issue
Block a user