WIP of adding tests
This commit is contained in:
parent
62c81e03c7
commit
37d77ecb64
|
@ -19,6 +19,7 @@
|
|||
*/
|
||||
|
||||
#include "fdbclient/FDBTypes.h"
|
||||
#include "fdbclient/SystemData.h"
|
||||
#include "fdbrpc/simulator.h"
|
||||
#include "fdbclient/BackupAgent.actor.h"
|
||||
#include "fdbclient/BackupContainer.h"
|
||||
|
@ -86,8 +87,13 @@ struct IncrementalBackupWorkload : TestWorkload {
|
|||
try {
|
||||
tr->setOption(FDBTransactionOptions::ACCESS_SYSTEM_KEYS);
|
||||
tr->setOption(FDBTransactionOptions::LOCK_AWARE);
|
||||
Optional<Value> versionValue = wait(tr->get(snapshotEndVersionKey));
|
||||
state Optional<Value> writeFlag = wait(tr->get(writeRecoveryKey));
|
||||
state Optional<Value> versionValue = wait(tr->get(snapshotEndVersionKey));
|
||||
TraceEvent("IBackupCheckSpecialKeys")
|
||||
.detail("WriteRecoveryValue", writeFlag.present() ? writeFlag.get().toString() : "N/A")
|
||||
.detail("EndVersionValue", versionValue.present() ? versionValue.get().toString() : "N/A");
|
||||
beginVersion = BinaryReader::fromStringRef<Version>(versionValue.get(), Unversioned());
|
||||
TraceEvent("IBackupCheckBeginVersion").detail("Version", beginVersion);
|
||||
break;
|
||||
} catch (Error& e) {
|
||||
TraceEvent("IBackupReadSystemKeysError").error(e);
|
||||
|
|
|
@ -167,6 +167,9 @@ if(WITH_PYTHON)
|
|||
add_fdb_test(TEST_FILES rare/TransactionTagApiCorrectness.toml)
|
||||
add_fdb_test(TEST_FILES rare/TransactionTagSwizzledApiCorrectness.toml)
|
||||
add_fdb_test(TEST_FILES rare/WriteTagThrottling.toml)
|
||||
add_fdb_test(
|
||||
TEST_FILES restarting/from_7.0.0/SnapIncrementalRestore-1.toml
|
||||
restarting/from_7.0.0/SnapIncrementalRestore-2.toml)
|
||||
add_fdb_test(
|
||||
TEST_FILES restarting/from_7.0.0/ConfigureTestRestart-1.txt
|
||||
restarting/from_7.0.0/ConfigureTestRestart-2.txt)
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
[[test]]
|
||||
testTitle = 'SubmitBackup'
|
||||
simBackupAgents = 'BackupToFile'
|
||||
|
||||
[[test.workload]]
|
||||
testName = 'IncrementalBackup'
|
||||
tag = 'default'
|
||||
submitOnly = true
|
||||
|
||||
[[test]]
|
||||
testTitle = 'SnapRunWorkloads'
|
||||
clearAfterTest = false
|
||||
|
||||
[[test.workload]]
|
||||
testName = 'Cycle'
|
||||
nodeCount = 3000
|
||||
transactionsPerSecond = 3000.0
|
||||
testDuration = 20.0
|
||||
expectedRate = 0
|
||||
|
||||
[[test]]
|
||||
testTitle = 'SnapPostWorkloads'
|
||||
clearAfterTest = false
|
||||
|
||||
[[test.workload]]
|
||||
testName = 'AtomicOps'
|
||||
transactionsPerSecond = 2500.0
|
||||
testDuration = 20.0
|
||||
opType = 0
|
||||
nodeCount = 1000
|
||||
|
||||
[[test]]
|
||||
testTitle = 'SnapShutdown'
|
||||
|
||||
[[test.workload]]
|
||||
testName = 'SaveAndKill'
|
||||
restartInfoLocation = 'simfdb/restartInfo.ini'
|
||||
testDuration = 10.0
|
|
@ -0,0 +1,28 @@
|
|||
[[test]]
|
||||
testTitle = 'RestoreBackup'
|
||||
simBackupAgents = 'BackupToFile'
|
||||
clearAfterTest = false
|
||||
|
||||
[[test.workload]]
|
||||
testName = 'IncrementalBackup'
|
||||
tag = 'default'
|
||||
restoreOnly = true
|
||||
checkBeginVersion = false
|
||||
|
||||
[[test]]
|
||||
testTitle = 'VerifyCycleAndAtomics'
|
||||
checkOnly = true
|
||||
|
||||
[[test.workload]]
|
||||
testName = 'Cycle'
|
||||
nodeCount = 3000
|
||||
transactionsPerSecond = 3000.0
|
||||
testDuration = 10.0
|
||||
expectedRate = 0
|
||||
|
||||
[[test.workload]]
|
||||
testName = 'AtomicOps'
|
||||
transactionsPerSecond = 2500.0
|
||||
testDuration = 10.0
|
||||
opType = 0
|
||||
nodeCount = 1000
|
Loading…
Reference in New Issue