Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add in-stream retry logic for retryable and quota errors (#2243)
* Add retry logic. TODO: get exponential retry algorithm setup * Attach exponential retry strategy to each AppendRequestAndResponse * Add changes to fake server to facilitate retry tests * Add basic default and exclusive internal/quota error retries * fix responsesToIgnore bug, add tests, remove logs * Add more tests, reformat * Add more tests * Fix schema error test, retry config * Cleanup changes, add back logs * Add newline at EOF * Run format * PR feedback * PR feedback * Use RetrySettings in StreamWriter * Add RetrySettings to JsonStreamWriter * Run format * Update clirr ignored differences; new additions never shipped * Disable retry during multiplexing * Throw exception if connection pool is enabled and retry settings are provided. * Run format * Combine retriable error checks * Add comments, make retry settings non-static * Set retry fields to final * Run format * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Evan Greco <egreco@google.com> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
- Loading branch information