Skip to content

Commit 024fdd0

Browse files
authored
core: fix the backoff range to [0.8, 1.2] as per the A6 redefinition (#12639)
The range is [0.4, 1.2] in code [spec](https://github.com/grpc/proposal/blob/6a8163b49157f2e19a5a7535a5957398d99701f1/A6-client-retries.md?plain=1#L113) mentions [0.8, 1.2].
1 parent 0ef1b39 commit 024fdd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/io/grpc/internal/RetriableStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ public void run() {
853853

854854
public static long intervalWithJitter(long intervalNanos) {
855855
double inverseJitterFactor = isExperimentalRetryJitterEnabled
856-
? 0.8 * random.nextDouble() + 0.4 : random.nextDouble();
856+
? 0.4 * random.nextDouble() + 0.8 : random.nextDouble();
857857
return (long) (intervalNanos * inverseJitterFactor);
858858
}
859859

0 commit comments

Comments
 (0)