remove buggify off + reorder container listing + temp mute failing workload

This commit is contained in:
Jon Fu 2020-10-21 17:10:41 -04:00
parent 896c4ccc62
commit 602335ed97
3 changed files with 14 additions and 22 deletions

View File

@ -158,17 +158,17 @@ struct IncrementalBackupWorkload : TestWorkload {
}
if (self->restoreOnly) {
if (self->manualBackupAgentStart) {
state Transaction earlyTr(cx);
state Transaction clearTr(cx);
// Clear Relevant System Keys
loop {
try {
earlyTr.setOption(FDBTransactionOptions::ACCESS_SYSTEM_KEYS);
earlyTr.setOption(FDBTransactionOptions::LOCK_AWARE);
earlyTr.clear(fileBackupPrefixRange);
wait(earlyTr.commit());
clearTr.setOption(FDBTransactionOptions::ACCESS_SYSTEM_KEYS);
clearTr.setOption(FDBTransactionOptions::LOCK_AWARE);
clearTr.clear(fileBackupPrefixRange);
wait(clearTr.commit());
break;
} catch (Error& e) {
wait(earlyTr.onError(e));
wait(clearTr.onError(e));
}
}
TraceEvent("IBackupRunBackupAgent");
@ -179,7 +179,6 @@ struct IncrementalBackupWorkload : TestWorkload {
state UID backupUID;
state Version beginVersion = invalidVersion;
wait(success(self->backupAgent.waitBackup(cx, self->tag.toString(), false, &backupContainer, &backupUID)));
state Key backupURL = LiteralStringRef("N/A");
if (self->checkBeginVersion) {
TraceEvent("IBackupReadSystemKeys");
state Reference<ReadYourWritesTransaction> tr(new ReadYourWritesTransaction(cx));
@ -208,19 +207,14 @@ struct IncrementalBackupWorkload : TestWorkload {
wait(tr->onError(e));
}
}
TraceEvent("IBackupStartListContainersAttempt");
state std::vector<std::string> containers =
wait(IBackupContainer::listContainers(self->backupDir.toString()));
TraceEvent("IBackupStartListContainersSuccess")
.detail("Size", containers.size())
.detail("First", containers.front());
backupURL = Key(containers.front());
}
if (backupURL == LiteralStringRef("N/A")) {
wait(success(
self->backupAgent.waitBackup(cx, self->tag.toString(), false, &backupContainer, &backupUID)));
backupURL = Key(backupContainer->getURL());
}
TraceEvent("IBackupStartListContainersAttempt");
state std::vector<std::string> containers =
wait(IBackupContainer::listContainers(self->backupDir.toString()));
TraceEvent("IBackupStartListContainersSuccess")
.detail("Size", containers.size())
.detail("First", containers.front());
state Key backupURL = Key(containers.front());
TraceEvent("IBackupRestoreAttempt")
.detail("BeginVersion", beginVersion);
wait(success(self->backupAgent.restore(cx, cx, Key(self->tag.toString()), backupURL, true, invalidVersion,

View File

@ -200,7 +200,7 @@ if(WITH_PYTHON)
restarting/from_5.2.0/ClientTransactionProfilingCorrectness-2.txt)
add_fdb_test(
TEST_FILES restarting/from_7.0.0/UpgradeAndBackupRestore-1.txt
restarting/from_7.0.0/UpgradeAndBackupRestore-2.txt)
restarting/from_7.0.0/UpgradeAndBackupRestore-2.txt IGNORE)
add_fdb_test(
TEST_FILES restarting/to_6.3.5/CycleTestRestart-1.txt
restarting/to_6.3.5/CycleTestRestart-2.txt)

View File

@ -1,5 +1,3 @@
buggify = false
[[test]]
testTitle = 'RestoreBackup'
simBackupAgents = 'BackupToFile'