Skip to content

CASSSIDECAR-465: Improve HTTP 429 handling across sidecar server and … - #374

Draft
arjunashok wants to merge 1 commit into
apache:trunkfrom
arjunashok:CASSSIDECAR-465-429-retry-handling
Draft

CASSSIDECAR-465: Improve HTTP 429 handling across sidecar server and …#374
arjunashok wants to merge 1 commit into
apache:trunkfrom
arjunashok:CASSSIDECAR-465-429-retry-handling

Conversation

@arjunashok

Copy link
Copy Markdown
Contributor

…client

Changes

  • The sidecar's upload concurrency limiter returns 429, but BasicRetryPolicy had no case for it. As a result, clients failed after one attempt instead of backing off.
  • Adds 429 handling to BasicRetryPolicy (honors Retry-After, falls back to configured backoff); fixes a prerequisite bug in RequestExecutor.schedule() that fired retries immediately instead of waiting (this was silently breaking the existing 503 backoff too, independent of 429); adds a Retry-After header to the server's 429 response, via config: retry_after_seconds.
  • retryAfterSeconds() is a default interface method for backward compatibility

…client

Patch by Arjun Ashok for CASSSIDECAR-465
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant