Commit 756e294
committed
docs(retry): clarify RetryInterceptor as supported API; add terminal-status assertions
Address Copilot review feedback (PR #1701, review 4246873092):
- RetryInterceptor Javadoc now declares it as part of the SDK's supported
public API and documents how BaseS3Client wraps every supplied
OkHttpClient. Drops {@link} references to package-private Retry helpers
so the public Javadoc no longer points at internal symbols. Adds a
Threading note about Thread.sleep blocking the OkHttp dispatcher slot
during backoff and points high-concurrency callers at Dispatcher
pool sizing.
- BaseS3Client.executeAsync Javadoc reworded to reflect the wrapWithRetry
behaviour (interceptor installed on every supplied client, default or
caller-provided) and to note the maxRetries supplier is read per request.
- RetryTest: strengthen testRetryExhaustedReturnsLastResponse to assert
the InvalidResponseException reflects HTTP 500 rather than allowing any
exception type to pass. Add testRetryExhaustedSurfacesXmlErrorResponse
for the XML/ErrorResponseException path, asserting both response.code()
and the parsed S3 code after retries are exhausted.
Validated locally on Java 17:
- :api:check (compile + spotless + spotbugs + tests) PASS
- :api:javadoc PASS1 parent 6d39a12 commit 756e294
3 files changed
Lines changed: 54 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
301 | | - | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
302 | 305 | | |
303 | 306 | | |
304 | 307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
695 | 700 | | |
696 | 701 | | |
697 | 702 | | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
705 | 708 | | |
706 | 709 | | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
711 | 719 | | |
712 | | - | |
| 720 | + | |
713 | 721 | | |
714 | 722 | | |
715 | 723 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
310 | 338 | | |
311 | 339 | | |
312 | 340 | | |
| |||
0 commit comments