From dec643987f5c93be6f2e86e4236f61702fdbb13b Mon Sep 17 00:00:00 2001 From: Chaoguang Lin Date: Wed, 21 Oct 2020 16:58:23 -0700 Subject: [PATCH] Add wait time after dd not found error --- fdbclient/SpecialKeySpace.actor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fdbclient/SpecialKeySpace.actor.cpp b/fdbclient/SpecialKeySpace.actor.cpp index 39ae9fbe64..e15898695c 100644 --- a/fdbclient/SpecialKeySpace.actor.cpp +++ b/fdbclient/SpecialKeySpace.actor.cpp @@ -366,12 +366,14 @@ ACTOR Future> ddMetricsGetRangeActor(ReadYourWritesTr } return result; } catch (Error& e) { + state Error err(e); if (e.code() == error_code_operation_failed) { TraceEvent(SevWarnAlways, "DataDistributorNotPresent") .detail("Operation", "DDMetricsReqestThroughSpecialKeys"); + wait(delayJittered(FLOW_KNOBS->PREVENT_FAST_SPIN_DELAY)); continue; } - throw; + throw err; } } }