Commit 7ed1aa1
Correct misleading OIDC docs and mislabeled test
Address review findings where documentation and one test described
behavior the code does not implement. Comments/test-name only; no
runtime behavior changes.
- QwpWebSocketSender: three comments claimed a token-provider failure is
retried within the reconnect budget and then terminates the sender. The
actual behavior is the opposite - the foreground/SYNC connect fails fast
with the provider's exception, while the running background drainer
retries indefinitely (never budget-bounded, never terminal) per
store-and-forward Invariant B. Rewrite all three to match.
- OidcDeviceAuth.getToken javadoc said the store per-identity lock wait is
"a few seconds at most, then proceeds without the lock." That bound is
the cross-process file lock; the in-process lock guarding two same-JVM
instances of one identity is not time-bounded and can wait out the
peer's whole refresh. Clarify the distinction.
- AbstractLineHttpSender: reword the drain comment - the per-flush budget
bounds each recv() read, not the whole body cumulatively (fine here
because the ILP server is trusted).
- FileTokenStoreTest: rename
testConcurrentStealContentionTwoWayPreservesMutualExclusion to
testSameProcessContendersSerializeAndBothStealStaleLock. Its
overlaps==0/maxInside==1 assertions are guaranteed by the in-process
PROCESS_LOCKS lock, not the file-lock capture-verify the old name
claimed, so the cross-process exclusion is masked in a single JVM.
Re-comment to document that the cross-process property is
inspection-verified.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 2acba17 commit 7ed1aa1
4 files changed
Lines changed: 43 additions & 30 deletions
File tree
- core/src
- main/java/io/questdb/client/cutlass
- auth
- line/http
- qwp/client
- test/java/io/questdb/client/test/cutlass/auth
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
499 | | - | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
500 | 504 | | |
501 | 505 | | |
502 | 506 | | |
| |||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | | - | |
719 | | - | |
720 | | - | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
721 | 724 | | |
722 | 725 | | |
723 | 726 | | |
| |||
Lines changed: 17 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
| |||
2811 | 2813 | | |
2812 | 2814 | | |
2813 | 2815 | | |
2814 | | - | |
2815 | | - | |
2816 | | - | |
2817 | | - | |
2818 | | - | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
2819 | 2822 | | |
2820 | 2823 | | |
2821 | 2824 | | |
2822 | 2825 | | |
2823 | | - | |
2824 | | - | |
2825 | | - | |
2826 | | - | |
2827 | | - | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
2828 | 2833 | | |
2829 | 2834 | | |
2830 | 2835 | | |
| |||
Lines changed: 14 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
210 | | - | |
| 209 | + | |
| 210 | + | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
257 | 258 | | |
258 | 259 | | |
259 | 260 | | |
| |||
286 | 287 | | |
287 | 288 | | |
288 | 289 | | |
289 | | - | |
| 290 | + | |
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
| |||
0 commit comments