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:
commit
fe4c33fabb
|
@ -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();
|
||||
|
|
|
@ -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 },
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue