Skip to content

Conversation

shortcuts
Copy link
Member

🧭 What and Why

🎟 JIRA Ticket: https://algolia.atlassian.net/browse/DI-4068

Changes included:

closes #5158

@shortcuts shortcuts self-assigned this Jul 25, 2025
@algolia-bot
Copy link
Collaborator

algolia-bot commented Jul 25, 2025

✔️ Code generated!

Name Link
🪓 Triggered by 1164931aaf90b9aafe150f2f3930f1c9f7a745b5
🍃 Generated commit fa99854184e374b78ee30768ebcab794b6296735
🌲 Generated branch generated/fix/clients-assert-retry-strategy
📊 Benchmark results

Benchmarks performed on the method using a mock server, the results might not reflect the real-world performance.

Language Req/s
go 1754
javascript 1635
php 1436
csharp 1363
java 1093
python 1042
ruby 838
swift 741
scala 23

@shortcuts shortcuts changed the title fix(clients): retry strategy on error fix(go): retry strategy Jul 25, 2025
@shortcuts shortcuts marked this pull request as ready for review July 25, 2025 09:40
@shortcuts shortcuts requested a review from a team as a code owner July 25, 2025 09:40
@shortcuts shortcuts requested review from Fluf22 and morganleroi July 25, 2025 09:40

for _, h := range t.retryStrategy.GetTryableHosts(k) {
// Prepare the request to be retryable.
req, _ = prepareRetryableRequest(req)
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like we never use the returned error. Should we avoid returning the error then?

Copy link
Member Author

Choose a reason for hiding this comment

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

we handle errors everywhere so I assume we can do it there as well, idk if this would lead to edge cases though

@shortcuts shortcuts requested a review from mehmetaligok July 25, 2025 10:30
@shortcuts shortcuts enabled auto-merge (squash) July 25, 2025 10:32
@shortcuts shortcuts disabled auto-merge July 25, 2025 10:50
@shortcuts shortcuts merged commit cda123b into main Jul 25, 2025
28 of 29 checks passed
@shortcuts shortcuts deleted the fix/clients-assert-retry-strategy branch July 25, 2025 10:50
algolia-bot added a commit that referenced this pull request Jul 25, 2025
Co-authored-by: Clément Vannicatte <[email protected]>
Co-authored-by: Antoine GILLES <[email protected]>
algolia-bot added a commit to algolia/algoliasearch-client-go that referenced this pull request Jul 25, 2025
algolia/api-clients-automation#5159

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Clément Vannicatte <[email protected]>
Co-authored-by: Antoine GILLES <[email protected]>
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.

[bug]: Issue in algoliasearch-client-go v4 impacting the retry strategy.

4 participants