Commit 73b6246
committed
LEGLINK-186: Fail fast on resource-cache blob calls so the retry-topic ladder owns retrying
The Azure SDK's default retry policy (4 exponential tries, effectively
unbounded per-try timeout) hid ~3 minutes of silent retrying inside every
consumer attempt during an ABS outage - blocking the single-threaded
consumer executor (head-of-line blocking for all records) and multiplying
the retry-topic ladder, which stretched from its designed ~3.5 minutes to
~11 before dead-lettering.
The cache blob client now uses a fail-fast policy: FIXED, maxTries=2
(initial call + one quick retry to absorb a dropped connection),
tryTimeout=10s, 1s delay. Real retrying belongs to the Kafka retry-topic
ladder, which is visible (log lines, attempt headers), configurable, and
ends in a dead letter. Both knobs are configuration properties
(resource-cache.blob-storage.max-tries / .try-timeout-seconds).
Measured live with azurite stopped: attempt latency dropped from ~2m48s
to 14.9s, and the recovery leg (azurite restored before the redelivery)
completed the empty-cache success path unchanged.
Deliberately not applied to BlobStorageService (report payload uploads):
that client is on the success path, where the SDK's patient retries help
rather than harm.
Claude-Session: https://claude.ai/code/session_01KN565tFAuJUAEkK2DdRF1e1 parent 65e921e commit 73b6246
2 files changed
Lines changed: 72 additions & 1 deletion
File tree
- Java/measureeval/src
- main/java/com/lantanagroup/link/measureeval/configs
- test/java/com/lantanagroup/link/measureeval/configs
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
27 | 42 | | |
28 | 43 | | |
29 | 44 | | |
30 | 45 | | |
31 | 46 | | |
32 | 47 | | |
33 | 48 | | |
34 | | - | |
| 49 | + | |
| 50 | + | |
35 | 51 | | |
36 | 52 | | |
| 53 | + | |
37 | 54 | | |
38 | 55 | | |
39 | 56 | | |
40 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
41 | 73 | | |
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
0 commit comments