Merge pull request #8302 from sfc-gh-huliu/testfix2

disable MoveKeysWorkload for a few tests that need to manipulate dd
This commit is contained in:
Markus Pilman 2022-09-23 11:02:04 -06:00 committed by GitHub
commit fe4c33fabb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -63,6 +63,8 @@ struct DataLossRecoveryWorkload : TestWorkload {
Future<Void> setup(Database const& cx) override { return Void(); }
void disableFailureInjectionWorkloads(std::set<std::string>& out) const override { out.insert("MoveKeysWorkload"); }
Future<Void> start(Database const& cx) override {
if (!enabled) {
return Void();

View File

@ -70,6 +70,8 @@ struct PhysicalShardMoveWorkLoad : TestWorkload {
return _start(this, cx);
}
void disableFailureInjectionWorkloads(std::set<std::string>& out) const override { out.insert("MoveKeysWorkload"); }
ACTOR Future<Void> _start(PhysicalShardMoveWorkLoad* self, Database cx) {
int ignore = wait(setDDMode(cx, 0));
state std::map<Key, Value> kvs({ { "TestKeyA"_sr, "TestValueA"_sr },

View File

@ -67,6 +67,8 @@ struct SSCheckpointRestoreWorkload : TestWorkload {
return _start(this, cx);
}
void disableFailureInjectionWorkloads(std::set<std::string>& out) const override { out.insert("MoveKeysWorkload"); }
ACTOR Future<Void> _start(SSCheckpointRestoreWorkload* self, Database cx) {
state Key key = "TestKey"_sr;
state Key endKey = "TestKey0"_sr;