Skip to content

chore: use backoff v5 for retryablehttp client#1062

Merged
atzoum merged 6 commits intomainfrom
fix.retryableHttp
Mar 10, 2026
Merged

chore: use backoff v5 for retryablehttp client#1062
atzoum merged 6 commits intomainfrom
fix.retryableHttp

Conversation

@atzoum
Copy link
Collaborator

@atzoum atzoum commented Mar 9, 2026

🔒 Scanned for secrets using gitleaks 8.30.0

Description

With backoff v4 it was impossible to disable max retries limit, only to set it to max uint64 value. With backoff v5, setting max tries to 0 can actually disable the limit in a clean manner.

Aditional items

  • closing previous response body in case of retrying
  • using backoff/v5 in statsd and enforcing it through a linter

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

…f maxretry

🔒 Scanned for secrets using gitleaks 8.30.0
@atzoum atzoum requested review from fracasula, itsmihir, ktgowtham and mihir20 and removed request for fracasula March 9, 2026 11:55
🔒 Scanned for secrets using gitleaks 8.30.0
@atzoum atzoum requested a review from fracasula March 9, 2026 13:53
🔒 Scanned for secrets using gitleaks 8.30.0
@atzoum atzoum marked this pull request as ready for review March 9, 2026 13:55
for i := uint(1); i <= c.brokers; i++ {
bootstrapServers += fmt.Sprintf("PLAINTEXT://kafka%d:9090,", i)
}
bootstrapServers := strings.Join(lo.Times(int(c.brokers), func(i int) string {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: go fix suggested string builder, but this made more sense

🔒 Scanned for secrets using gitleaks 8.30.0
@atzoum atzoum changed the title chore: use backoff v5 for retryablehttp client and maxtries instead of maxretry chore: use backoff v5 for retryablehttp client Mar 9, 2026
🔒 Scanned for secrets using gitleaks 8.30.0
🔒 Scanned for secrets using gitleaks 8.30.0
@atzoum atzoum enabled auto-merge (squash) March 10, 2026 11:01
@atzoum atzoum disabled auto-merge March 10, 2026 11:07
@atzoum atzoum merged commit 77cacbd into main Mar 10, 2026
16 checks passed
@atzoum atzoum deleted the fix.retryableHttp branch March 10, 2026 13:16
atzoum added a commit to rudderlabs/rudder-server that referenced this pull request Mar 10, 2026
🔒 Scanned for secrets using gitleaks 8.30.0

# Description

see rudderlabs/rudder-go-kit#1062


## Security

- [x] The code changed/added as part of this pull request won't create
any security issues with how the software is being used.
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.

4 participants