This commit is contained in:
Nim Wijetunga 2022-09-22 11:34:06 -07:00 committed by GitHub
parent 41993c41fd
commit 37b93a6232
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 2 deletions

View File

@ -248,6 +248,10 @@ struct ConfigureDatabaseWorkload : TestWorkload {
std::string description() const override { return "DestroyDatabaseWorkload"; }
void disableFailureInjectionWorkloads(std::set<std::string>& out) const override {
out.insert("MachineAttritionWorkload");
}
Future<Void> setup(Database const& cx) override { return _setup(cx, this); }
Future<Void> start(Database const& cx) override { return _start(this, cx); }

View File

@ -40,6 +40,9 @@ struct KillRegionWorkload : TestWorkload {
}
std::string description() const override { return "KillRegionWorkload"; }
void disableFailureInjectionWorkloads(std::set<std::string>& out) const override { out.insert("all"); }
Future<Void> setup(Database const& cx) override {
if (enabled) {
return _setup(this, cx);

View File

@ -81,6 +81,10 @@ struct MetaclusterManagementWorkload : TestWorkload {
std::string description() const override { return "MetaclusterManagement"; }
void disableFailureInjectionWorkloads(std::set<std::string>& out) const override {
out.insert("MachineAttritionWorkload");
}
Future<Void> setup(Database const& cx) override {
if (clientId == 0) {
if (g_network->isSimulated() && BUGGIFY) {

View File

@ -223,8 +223,8 @@ struct TenantEntryCacheWorkload : TestWorkload {
CLIENT_KNOBS->TENANT_ENTRY_CACHE_LIST_REFRESH_INTERVAL * 10; // initial delay + multiple refresh runs
wait(delay(refreshWait));
// InitRefresh + multiple timer based invocations
ASSERT_GE(cache->numCacheRefreshes(), 3);
// InitRefresh + multiple timer based invocations (at least 2 invocations of cache->refresh())
ASSERT_GE(cache->numCacheRefreshes(), 2);
TraceEvent("TestCacheRefreshEnd");
return Void();