Skip to content

Commit

Permalink
enhancement(gcs sink): add retry for 408 http error
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-awd committed Oct 8, 2024
1 parent b58e1b2 commit 2a2c162
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog.d/21447-gcs-sink-retry-on-http-error-408.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Adds retry support for the 408 HTTP error (request timed out) for the GCS sink.

authors: benjamin-awd
1 change: 1 addition & 0 deletions src/sinks/gcs_common/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ impl RetryLogic for GcsRetryLogic {

match status {
StatusCode::UNAUTHORIZED => RetryAction::Retry("unauthorized".into()),
StatusCode::REQUEST_TIMEOUT => RetryAction::Retry("request timeout".into()),
StatusCode::TOO_MANY_REQUESTS => RetryAction::Retry("too many requests".into()),
StatusCode::NOT_IMPLEMENTED => {
RetryAction::DontRetry("endpoint not implemented".into())
Expand Down

0 comments on commit 2a2c162

Please sign in to comment.