add jitter to the delay

This commit is contained in:
Evan Tschannen 2020-09-22 22:24:40 -07:00
parent 09ff05c629
commit b37daf88d4
1 changed files with 1 additions and 1 deletions

View File

@ -3497,7 +3497,7 @@ ACTOR Future<GetReadVersionReply> getConsistentReadVersion( DatabaseContext *cx,
if (e.code() != error_code_broken_promise && e.code() != error_code_batch_transaction_throttled)
TraceEvent(SevError, "GetConsistentReadVersionError").error(e);
if(e.code() == error_code_batch_transaction_throttled && !cx->apiVersionAtLeast(630)) {
wait(delay(5.0));
wait(delayJittered(5.0));
} else {
throw;
}