Exercise client follow for life owner redirects
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (checks) (push) Failing after 39s
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 47s
Foundation / checks (tsan) (push) Canceled after 24s
Foundation / checks (ecs) (push) Canceled after 59s
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 6s
Foundation / checks (network) (push) Successful in 5s
Foundation / checks (checks) (push) Failing after 39s
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 47s
Foundation / checks (tsan) (push) Canceled after 24s
Foundation / checks (ecs) (push) Canceled after 59s
This commit is contained in:
+9
-1
@@ -36,6 +36,7 @@ struct WorldDb {
|
||||
State state{};
|
||||
};
|
||||
std::map<AccountId, Probe> probes;
|
||||
std::map<AccountId, std::uint64_t> life_owners;
|
||||
std::map<TransferId, Transfer> transfers;
|
||||
bool all_overdue{}; // overdue() reports every open transfer (a restarted source's view).
|
||||
std::uint64_t overdue_reads{};
|
||||
@@ -114,8 +115,15 @@ struct RegionDb final : server::ProbeLedger, HandoffLedger, ControlLedger {
|
||||
}
|
||||
std::expected<ControlLease, ControlLedgerError> claim(const AccountId&, std::uint64_t,
|
||||
std::uint64_t) override {
|
||||
++claims;
|
||||
return ControlLease{++control, {}, std::chrono::milliseconds{20000}};
|
||||
}
|
||||
std::expected<std::optional<std::uint64_t>, ControlLedgerError>
|
||||
primitive_life_owner(const AccountId& account) override {
|
||||
const auto found = world->life_owners.find(account);
|
||||
return found == world->life_owners.end() ? std::optional<std::uint64_t>{}
|
||||
: std::optional{found->second};
|
||||
}
|
||||
std::expected<std::chrono::milliseconds, ControlLedgerError> renew(const AccountId&,
|
||||
std::uint64_t) override {
|
||||
return std::chrono::milliseconds{20000};
|
||||
@@ -125,6 +133,6 @@ struct RegionDb final : server::ProbeLedger, HandoffLedger, ControlLedger {
|
||||
}
|
||||
WorldDb* world;
|
||||
std::uint64_t region;
|
||||
std::uint64_t control{}, saves{}, releases{};
|
||||
std::uint64_t control{}, claims{}, saves{}, releases{};
|
||||
};
|
||||
} // namespace evo::test
|
||||
|
||||
Reference in New Issue
Block a user