Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Retry when some of batch operations are failing #1840

Merged
merged 2 commits into from
Apr 2, 2023

Conversation

nasen23
Copy link
Contributor

@nasen23 nasen23 commented Apr 2, 2023

Also added a test for retry on batch operation.

This implementation works as expected but is not so elegant as far as I'm considering. Batch operation could possibly be retried even when result is Ok. So I had to wrap it in a Result<(), Result<RpBatch>> type. And the errors method on BatchedResults requires dynamic dispatching.

Regarding the issue mentioned above, would you be able to suggest any better solutions or provide further guidance?

Also added a test for retry on batch operation.

This implementation is not so elegant as far as I'm considering. Batch
operation could possibly be retried even when result is `Ok`. So I had
to wrap it in a `Result<(), Result<RpBatch>>` type. And the `errors`
method on `BatchedResult` requires dynamic dispatching.
Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@Xuanwo Xuanwo merged commit 5c3ce7d into apache:main Apr 2, 2023
@nasen23 nasen23 deleted the batch-retry branch April 2, 2023 12:21
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.

2 participants