Commit 44e552b
feat(streaming)!: trim reconnect_jitter to full/none; drop equal + decorrelated (#1197)
* feat(streaming)!: trim reconnect_jitter to full/none; drop equal + decorrelated
The reconnect backoff exposed four AWS jitter modes — Full, Equal, Decorrelated, None. Full jitter (sample uniformly from [0, delay]) is the right default for a recovering fleet and stays; None (deterministic) is kept for tests. Equal and Decorrelated were unused academic variants with no operational benefit over full jitter — flexibility nobody sets — so they are removed.
The JitterMode enum drops both variants (its sampler no longer needs the per-burst BackoffSchedule, so the now-dead decorrelated walk state — the schedule's `prev` field and `reset()` — is removed too), and the C-ABI integer encoding collapses to 0 = Full, 1 = None. Removed across every binding, the config surface, the cross-binding parity rows, and the docs; setting the removed modes (or the old C-ABI codes 1 = Equal / 2 = Decorrelated) is now rejected with the typed invalid-parameter error.
Breaking change to the configuration surface.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* test(cpp): update reconnect_jitter round-trip to the 2-mode encoding
The C++ error-taxonomy test set reconnect_jitter(2) (the removed Decorrelated code) as its valid non-default value; use 1 (None) now that the encoding is 0=Full, 1=None.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: preview <noreply@anthropic.com>1 parent 6881c03 commit 44e552b
19 files changed
Lines changed: 50 additions & 178 deletions
File tree
- docs-site/docs
- streaming
- thetadatadx-cpp
- include
- tests
- thetadatadx-ffi/src
- thetadatadx-py
- python/thetadatadx
- src/_generated
- tests
- thetadatadx-rs
- src
- config
- fpss/io_loop
- thetadatadx-ts
- __tests__
- src/_generated
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1960 | 1960 | | |
1961 | 1961 | | |
1962 | 1962 | | |
1963 | | - | |
| 1963 | + | |
1964 | 1964 | | |
1965 | 1965 | | |
1966 | 1966 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1378 | 1378 | | |
1379 | 1379 | | |
1380 | 1380 | | |
1381 | | - | |
1382 | | - | |
1383 | | - | |
| 1381 | + | |
1384 | 1382 | | |
1385 | | - | |
| 1383 | + | |
1386 | 1384 | | |
1387 | 1385 | | |
1388 | 1386 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2115 | 2115 | | |
2116 | 2116 | | |
2117 | 2117 | | |
2118 | | - | |
| 2118 | + | |
2119 | 2119 | | |
2120 | 2120 | | |
2121 | 2121 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
229 | | - | |
| 228 | + | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
0 commit comments