From 7c003bfa704cf459b8a88efa742d46e8bfa62172 Mon Sep 17 00:00:00 2001 From: Meng Xu Date: Fri, 28 Feb 2020 14:27:45 -0800 Subject: [PATCH] FastRestore:Disable isSchedulable for test --- fdbserver/RestoreRoleCommon.actor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/fdbserver/RestoreRoleCommon.actor.cpp b/fdbserver/RestoreRoleCommon.actor.cpp index 6292da70ee..174e521052 100644 --- a/fdbserver/RestoreRoleCommon.actor.cpp +++ b/fdbserver/RestoreRoleCommon.actor.cpp @@ -106,6 +106,7 @@ ACTOR Future isSchedulable(Reference 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) {