Skip to content

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