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
HttpJsonClientInterceptorTest.testCustomInterceptor is flaky #1322
Comments
@lqiu96 Can you please fix this as part of the Maven migration? This test is very flaky in Maven so we should fix it before migrating to Maven. |
See this chat thread for detailed discussion. |
@blakeli0, I took a look at the original GRPC implementation for Unary calls: googleapis/gax-java#1356. It seems that this was intended to be an eager implementation: https://github.com/googleapis/gax-java/blob/abecb7cfd8680ec1a693accde5b8e08c23c0ffdb/gax-grpc/src/main/java/com/google/api/gax/grpc/GrpcClientCalls.java#L169
The eager implementation seems to be a copy of Grpc-Java's ClientCalls: https://github.com/grpc/grpc-java/blob/eb1e5a11c6397dd9809d3bb4adf142caf0007065/stub/src/main/java/io/grpc/stub/ClientCalls.java#L224 and the original non-eager implementation has the value set in Possible path forward (?)Perhaps we can copy the GRPC logic with an We'll have a copy of this function called We can update the current |
For now, we have decided to busy-wait until the interceptor has received the status code googleapis/gax-java#1851 We're going to explore some potential fixes for the issues above. |
One approach that we are looking to take for minimal changes:
Per Vadym, to properly test these changes:
If both java-compute and server-streaming call on any regapics passes with explicit custom interceptors then we are fine |
Our preference is to update the code to a non-eager implementation (converting the old eager implementation to non-eager). If there is interest/ support for an eager implementation, we can add it in. |
This has been resolved in: #1162 |
See https://github.com/googleapis/gax-java/runs/7581553740?check_suite_focus=true for the failure in gradle build and https://github.com/googleapis/gax-java/runs/7582163011?check_suite_focus=true for failure in maven build.
The text was updated successfully, but these errors were encountered: