Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix gRPC Retry Mechanism for Unsuccessful HTTP Responses #6829

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

JiwonKKang
Copy link
Contributor

Changes:

  • Added a condition to trigger retries based on retryable gRPC status codes, even when the HTTP status is not 200.

Impact:
This fix ensures that gRPC requests are retried according to policy when encountering transient 503 errors, enhancing resilience in case of temporary unavailability.

@JiwonKKang JiwonKKang requested a review from a team as a code owner October 28, 2024 13:51
Copy link

linux-foundation-easycla bot commented Oct 28, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

Copy link
Member

@jack-berg jack-berg left a comment

Choose a reason for hiding this comment

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

Just a minor comment about class / method visibility level in the test, but looks good. Thanks!

import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;

public class OkHttpGrpcSenderTest {
Copy link
Member

Choose a reason for hiding this comment

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

#nit: we omit public on test classes and test methods in this repo, since junit 5 doesn't require them to be public

Suggested change
public class OkHttpGrpcSenderTest {
class OkHttpGrpcSenderTest {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the code review😊

@jack-berg jack-berg merged commit 740dd14 into open-telemetry:main Oct 29, 2024
15 checks passed
@JiwonKKang JiwonKKang deleted the grpc-retry branch October 29, 2024 01:01
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants