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
java.lang.IllegalStateException · May only be called before start while using enable Retry #8222
Comments
Surfaced by change #7750 since v1.36. IIRC there would be race conditions between pending these call and |
@jchau207 how often do you see this issue? |
@YifeiZhuang we encountered 1,262 occurrence over the 260 k sessions. so ~ 0.4% of our users. |
@YifeiZhuang, @dapengzhang0, do we still not have an idea of how this would be happening? |
@dapengzhang0 this is our MetaDataInterceptor implementation.
|
@jchau207 Thanks for sharing the code. So there is no evidence that |
Hi, I saw there were some updates and fixes for the retry mechanism in 1.40, I gave that update a try and we are still seeing a similar error:
I have attached a dump of the other thread. Hope that would help track down the problem: |
@jchau207 Unfortunately I could not reproduce the issue using the code in the above description. I would really appreciate it if you could provide a minimal reproducible complete verifiable example, such as a complete small project in github. |
No response to provide more information, so closing. More information can be provided and then we can reopen. |
What version of gRPC-Java are you using?
io.grpc:grpc-android:1.37.0'
What is your environment?
Android devices. Java 8
What did you expect to see?
I expect the the stream call to be retried if the call to start the stream fails.
What did you see instead?
A small percentage of our users are cashing with the following stack trace:
Steps to reproduce the bug
We implemented our channel builder with these configuration:
Our retry configuration is as follow:
Our service calls are stream calls that are built like this:
The text was updated successfully, but these errors were encountered: