You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: engine/packages/universaldb/src/utils/mod.rs
+18-5Lines changed: 18 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -24,13 +24,26 @@ pub enum IsolationLevel {
24
24
#[derive(Debug,Clone,Copy)]
25
25
pubstructMaybeCommitted(pubbool);
26
26
27
+
/// Calculate exponential backoff based on attempt.
28
+
///
29
+
/// Ours:
30
+
/// 0 -> 10ms + 0-1ms jitter
31
+
/// 1 -> 20ms + 0-2ms jitter
32
+
/// 2 -> 40ms + 0-4ms jitter
33
+
/// ...
34
+
/// 7 (max) -> 1280ms + 0-128ms jitter
35
+
/// FDB (see https://github.com/apple/foundationdb/blob/b1fbbd87a794b7c6c2f456925c45d8af339a8ae0/fdbclient/NativeAPI.actor.cpp#L4333 and https://github.com/apple/foundationdb/blob/b1fbbd87a794b7c6c2f456925c45d8af339a8ae0/fdbclient/ClientKnobs.cpp#L74-L76):
0 commit comments