Add wait time after dd not found error

This commit is contained in:
Chaoguang Lin 2020-10-21 16:58:23 -07:00
parent c4dc2f0cfb
commit dec643987f
1 changed files with 3 additions and 1 deletions

View File

@ -366,12 +366,14 @@ ACTOR Future<Standalone<RangeResultRef>> 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;
}
}
}