FastRestore:Disable isSchedulable for test

This commit is contained in:
Meng Xu 2020-02-28 14:27:45 -08:00
parent 62b9043ff6
commit 7c003bfa70
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ ACTOR Future<Void> isSchedulable(Reference<RestoreRoleData> self, int actorBatch
// Intentionally randomly block actors for low memory reason.
// memory will be larger than threshold when deterministicRandom()->random01() > 1/2
memory = SERVER_KNOBS->FASTRESTORE_MEMORY_THRESHOLD_MB_SOFT * 2 * deterministicRandom()->random01();
memory = 0;
}
if (memory < SERVER_KNOBS->FASTRESTORE_MEMORY_THRESHOLD_MB_SOFT ||
self->finishedBatch.get() + 1 == actorBatchIndex) {