[Feature]: Configurable retries for the RAGFS S3 client (SDK default of three attempts fails on SlowDown bursts)
Version
OpenViking v0.5.4 (9dfa9017a). The same code is on current main (checked 2026-11-13).
Summary
The RAGFS S3 client (crates/ragfs/src/plugins/s3fs/client.rs) keeps the AWS SDK's default retry policy (three attempts). S3-compatible stores such as Backblaze B2 answer bursts with 503 SlowDown or 500 for longer than three quick attempts, and the error reaches API clients as an internal error. #6971 classifies throttling for metrics but does not retry it.
Reproduction
Point the S3 backend at a local HTTP server that answers 503 three times and then succeeds. The operation fails, while a fourth attempt would pass.
Proposed fix
Make the retry policy configurable (attempts and backoff), or default to RetryConfig::standard().with_max_attempts(8) with a 1 s initial and 20 s maximum backoff, which is what our local patch sets. No new dependency. Happy to open a PR.
Thanks for reporting this. The S3 client already uses the AWS SDK's default retry policy. The reproduction demonstrates that another attempt succeeds for the chosen failure sequence, but does not establish that the default policy is inadequate for real workloads. The report does not include measured failure rates, throttling duration, or operational impact.
Increasing the retry budget can extend request latency during persistent failures, and exposing retry/backoff settings adds configuration and maintenance costs. With the current evidence, we do not see sufficient benefit to introduce these settings or raise the default to eight attempts.
Closing as not planned. We will retain the SDK's default retry policy.