From db610355cf4f59f8b097ff7a61964395dcdfb05d Mon Sep 17 00:00:00 2001 From: Steve Atherton Date: Fri, 16 Apr 2021 14:19:37 -0700 Subject: [PATCH] Keep simulated disk write delay high until speedUp is set. --- fdbrpc/AsyncFileNonDurable.actor.h | 2 +- flow/Knobs.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fdbrpc/AsyncFileNonDurable.actor.h b/fdbrpc/AsyncFileNonDurable.actor.h index fe3d3a4137..848d755fb1 100644 --- a/fdbrpc/AsyncFileNonDurable.actor.h +++ b/fdbrpc/AsyncFileNonDurable.actor.h @@ -197,7 +197,7 @@ private: this->file = file; this->filename = filename; this->diskParameters = diskParameters; - maxWriteDelay = deterministicRandom()->random01() * FLOW_KNOBS->NON_DURABLE_MAX_WRITE_DELAY; + maxWriteDelay = FLOW_KNOBS->NON_DURABLE_MAX_WRITE_DELAY; hasBeenSynced = false; killMode = (KillMode)deterministicRandom()->randomInt(1, 3); diff --git a/flow/Knobs.cpp b/flow/Knobs.cpp index 6dc77e2fb2..4a3eb4e2d7 100644 --- a/flow/Knobs.cpp +++ b/flow/Knobs.cpp @@ -135,7 +135,7 @@ void FlowKnobs::initialize(bool randomize, bool isSimulated) { init( DISABLE_POSIX_KERNEL_AIO, 0 ); //AsyncFileNonDurable - init( NON_DURABLE_MAX_WRITE_DELAY, 0.0001 ); if( randomize && BUGGIFY ) NON_DURABLE_MAX_WRITE_DELAY = 5.0; + init( NON_DURABLE_MAX_WRITE_DELAY, 5.0 ); init( MAX_PRIOR_MODIFICATION_DELAY, 1.0 ); if( randomize && BUGGIFY ) MAX_PRIOR_MODIFICATION_DELAY = 10.0; //GenericActors