diff --git a/fdbclient/ManagementAPI.actor.cpp b/fdbclient/ManagementAPI.actor.cpp index 447aad68bf..38f79e8ac1 100644 --- a/fdbclient/ManagementAPI.actor.cpp +++ b/fdbclient/ManagementAPI.actor.cpp @@ -143,7 +143,7 @@ std::map configForToken(std::string const& mode) { } if (key == "perpetual_storage_wiggle" && isInteger(value)) { - int ppWiggle = atoi(value.c_str()); + int ppWiggle = std::stoi(value); if (ppWiggle >= 2 || ppWiggle < 0) { printf("Error: Only 0 and 1 are valid values of perpetual_storage_wiggle at present.\n"); return out; diff --git a/fdbclient/ServerKnobs.cpp b/fdbclient/ServerKnobs.cpp index 83dbe0af37..3496d34572 100644 --- a/fdbclient/ServerKnobs.cpp +++ b/fdbclient/ServerKnobs.cpp @@ -255,6 +255,7 @@ void ServerKnobs::initialize(Randomize randomize, ClientKnobs* clientKnobs, IsSi init( DD_TEAMS_INFO_PRINT_YIELD_COUNT, 100 ); if( randomize && BUGGIFY ) DD_TEAMS_INFO_PRINT_YIELD_COUNT = deterministicRandom()->random01() * 1000 + 1; init( DD_TEAM_ZERO_SERVER_LEFT_LOG_DELAY, 120 ); if( randomize && BUGGIFY ) DD_TEAM_ZERO_SERVER_LEFT_LOG_DELAY = 5; init( DD_STORAGE_WIGGLE_PAUSE_THRESHOLD, 1 ); if( randomize && BUGGIFY ) DD_STORAGE_WIGGLE_PAUSE_THRESHOLD = 10; + init( DD_STORAGE_WIGGLE_STUCK_THRESHOLD, 50 ); // TeamRemover init( TR_FLAG_DISABLE_MACHINE_TEAM_REMOVER, false ); if( randomize && BUGGIFY ) TR_FLAG_DISABLE_MACHINE_TEAM_REMOVER = deterministicRandom()->random01() < 0.1 ? true : false; // false by default. disable the consistency check when it's true diff --git a/fdbserver/tester.actor.cpp b/fdbserver/tester.actor.cpp index a65d02cbc2..7318ece807 100644 --- a/fdbserver/tester.actor.cpp +++ b/fdbserver/tester.actor.cpp @@ -1049,8 +1049,7 @@ std::map> testSpecGlobalKey [](const std::string& value) { TraceEvent("TestParserTest").detail("ParsedStorageEngineExcludeTypes", ""); } }, { "maxTLogVersion", [](const std::string& value) { TraceEvent("TestParserTest").detail("ParsedMaxTLogVersion", ""); } }, - { "disableTss", - [](const std::string& value) { TraceEvent("TestParserTest").detail("ParsedDisableTSS", ""); } } + { "disableTss", [](const std::string& value) { TraceEvent("TestParserTest").detail("ParsedDisableTSS", ""); } } }; std::map> testSpecTestKeys = { @@ -1178,6 +1177,11 @@ std::mapphases = TestWorkload::CHECK; } }, + { "restorePerpetualWiggleSetting", + [](const std::string& value, TestSpec* spec) { + if (value == "false") + spec->restorePerpetualWiggleSetting = false; + } }, }; vector readTests(ifstream& ifs) {