diff --git a/fdbserver/workloads/BackupAndParallelRestoreCorrectness.actor.cpp b/fdbserver/workloads/BackupAndParallelRestoreCorrectness.actor.cpp index 987a394cbb..55a235b86c 100644 --- a/fdbserver/workloads/BackupAndParallelRestoreCorrectness.actor.cpp +++ b/fdbserver/workloads/BackupAndParallelRestoreCorrectness.actor.cpp @@ -450,7 +450,8 @@ struct BackupAndParallelRestoreCorrectnessWorkload : TestWorkload { targetVersion = desc.minRestorableVersion.get(); } else if (deterministicRandom()->random01() < 0.1) { targetVersion = desc.maxRestorableVersion.get(); - } else if (deterministicRandom()->random01() < 0.5) { + } else if (deterministicRandom()->random01() < 0.5 && + desc.minRestorableVersion.get() < desc.contiguousLogEnd.get()) { // The assertion may fail because minRestorableVersion may be decided by snapshot version. // ASSERT_WE_THINK(desc.minRestorableVersion.get() <= desc.contiguousLogEnd.get()); // This assertion can fail when contiguousLogEnd < maxRestorableVersion and