[GODRIVER-2491] Feature request - configurable retries Created: 14/Jul/22  Updated: 27/Oct/23  Resolved: 11/Aug/22

Status: Closed
Project: Go Driver
Component/s: Retryability
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Andrii Hrachov Assignee: Benji Rewis (Inactive)
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

As the docs state, we only have the possibility to enable/disable one retry
Sometimes we need more than one, especially on write operations, so we write retry logic by ourserlves.

somthing like retries count, and retry backoff configuration parameters would be handy, so the custom code could be avoided



 Comments   
Comment by PM Bot [ 11/Aug/22 ]

There hasn't been any recent activity on this ticket, so we're resolving it. Thanks for reaching out! Please feel free to comment on this if you're able to provide more information.

Comment by Benji Rewis (Inactive) [ 27/Jul/22 ]

Hello andrii.hrachov@deliveryhero.com and thanks for your feature request! We understand that the policy of retrying a single time is not particularly configurable and will not suit all users' needs. Modifications to the retry logic and additions to the feature's configurability would represent a cross-drivers change and would thus require a DRIVERS ticket and modifications to our cross-drivers specifications.

We are currently implementing a project called "client-side operations timeout" that may modify the retry logic of the driver to retry indefinitely when a deadline is set on the operation either in the provided context or the new Timeout option on the client. See GODRIVER-2457 and this section of the CSOT spec (still in review).

I'm most curious about your use-case. When are you retrying writes for a second time? Would the proposed behavior of retrying indefinitely within the given timeout be helpful to you? Any info you could provide on your use case would be appreciated.

Best,

Benji

Comment by Esha Bhargava [ 15/Jul/22 ]

andrii.hrachov@deliveryhero.com Thank you for reporting this issue. We'll look into it and get back to you.

Generated at Thu Feb 08 08:38:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.