From 445aed18bfb98f99446793dec77d6bad6989fbf3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 27 Nov 2025 15:08:08 +0000 Subject: [PATCH 1/2] Initial plan From 513a0560a5890dda08b62b6dc9cda18d517ae5b2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 27 Nov 2025 15:11:00 +0000 Subject: [PATCH 2/2] Fix: use $max_delay variable instead of hardcoded 30 in cURL example Co-authored-by: jstirnaman <212227+jstirnaman@users.noreply.github.com> --- .../shared/influxdb3-write-guides/troubleshoot-distributed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/shared/influxdb3-write-guides/troubleshoot-distributed.md b/content/shared/influxdb3-write-guides/troubleshoot-distributed.md index 3c1d5a8cad..a5c7b0883b 100644 --- a/content/shared/influxdb3-write-guides/troubleshoot-distributed.md +++ b/content/shared/influxdb3-write-guides/troubleshoot-distributed.md @@ -391,7 +391,7 @@ for attempt in $(seq 0 $max_retries); do fi # compute exponential delay and apply full jitter - delay=$(awk -v b=$base -v a=$attempt 'BEGIN{d=b*(2^a); if(d>30) d=30; print d}') + delay=$(awk -v b=$base -v a=$attempt -v m=$max_delay 'BEGIN{d=b*(2^a); if(d>m) d=m; print d}') sleep_seconds=$(awk -v d=$delay 'BEGIN{srand(); printf "%.3f", rand()*d}') sleep $sleep_seconds done