-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[#11186] Change gRPC UNARY response based on header value #11215
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #11215 +/- ##
=========================================
Coverage 36.99% 36.99%
- Complexity 12046 12048 +2
=========================================
Files 3980 3982 +2
Lines 97903 97938 +35
Branches 10418 10423 +5
=========================================
+ Hits 36215 36230 +15
- Misses 58713 58732 +19
- Partials 2975 2976 +1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good equals and hashCode implemetations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you check about the new GrpcServerResponse type for the RetryFriendlyResponse?
@@ -49,7 +50,7 @@ public SimpleRequestHandlerAdaptor(String name, DispatchHandler<REQ, RES> dispat | |||
public void request(Message<? extends REQ> message, StreamObserver<? extends RES> responseObserver) { | |||
try { | |||
final ServerRequest<? extends REQ> request = serverRequestFactory.newServerRequest(message); | |||
final ServerResponse<? extends RES> response = new GrpcServerResponse<>(responseObserver); | |||
final ServerResponse<? extends RES> response = new GrpcServerResponse<>(responseObserver, ServerContext.getAgentInfo().isRetryFriendlyResponse()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you check create new GrpcServerResponse type for the RetryFriendlyResponse
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed with new GrpcRetryFriendlyServerResponse class
} | ||
|
||
@Override | ||
public void write(final T message) { | ||
Objects.requireNonNull(message, "message"); | ||
|
||
if (retryFriendlyResponse) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you check create new GrpcServerResponse type for the RetryFriendlyResponse?
0338829
to
9b2ccc1
Compare
LGTM |
No description provided.