Skip to content

Commit

Permalink
fix: oss internal error should retry. Fixes #13262 (#13263)
Browse files Browse the repository at this point in the history
Signed-off-by: shuangkun <[email protected]>
Co-authored-by: AlbeeSo <[email protected]>
(cherry picked from commit 77b5732)
  • Loading branch information
shuangkun authored and Anton Gilgur committed Jul 6, 2024
1 parent 827388c commit d5ab947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/artifacts/oss/oss.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var (
defaultRetry = wait.Backoff{Duration: time.Second * 2, Factor: 2.0, Steps: 5, Jitter: 0.1}

// OSS error code reference: https://error-center.alibabacloud.com/status/product/Oss
ossTransientErrorCodes = []string{"RequestTimeout", "QuotaExceeded.Refresh", "Default", "ServiceUnavailable", "Throttling", "RequestTimeTooSkewed", "SocketException", "SocketTimeout", "ServiceBusy", "DomainNetWorkVisitedException", "ConnectionTimeout", "CachedTimeTooLarge"}
ossTransientErrorCodes = []string{"RequestTimeout", "QuotaExceeded.Refresh", "Default", "ServiceUnavailable", "Throttling", "RequestTimeTooSkewed", "SocketException", "SocketTimeout", "ServiceBusy", "DomainNetWorkVisitedException", "ConnectionTimeout", "CachedTimeTooLarge", "InternalError"}
bucketLogFilePrefix = "bucket-log-"
maxObjectSize = int64(5 * 1024 * 1024 * 1024)
)
Expand Down

0 comments on commit d5ab947

Please sign in to comment.