-
Notifications
You must be signed in to change notification settings - Fork 319
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
Spring GCP subscribers will softlock against large queues with "Exactly Once" delivery enabled. #2491
Comments
Do you feel this is caused by something in Spring Cloud GCP, or in the underlying Pub/Sub client library, or the Pub/Sub service itself? |
I suspect the Spring GCP libraries, but I don't know for certain yet. I'm planning on adding a Java subscriber that doesn't use any of these libraries to the example project. |
I've also been able to find the following error in the example code when it does fail. It will usually run for long hours at a time and not process messages, but will occasionally throw the following exception and restart:
These all seem to be in the GCP library or its dependencies (grpc, gax), but it's not clear to me if this is a bug in those dependencies or in the way that Spring GCP calls these dependencies. What do you think? |
This looks like an issue that has been resolved in google-cloud-pubsub 1.125.12, which is available in libraries-bom 26.28.0, which is available in Spring Cloud GCP 3.7.5, 4.9.0, and 5.0.0. Could you verify which version you are using, and update if prior to one of the listed releases? |
As indicated in the original bug, the bug is reproduced with these versions:
Updating to these versions with the exact same code make the issue not reproducible anymore:
I'll be updating the demonstration code with the known fix(es). |
Demonstration code and fixes: https://github.com/chases2/ahab-sturdy-pancake |
Describe the bug
If you boot a GCP PubSub consumer under these circumstances...
... then the consumer will fail to consume with no errors, potentially for hours.
Exact versions are in the pom.xml of the example below.
Sample
A sample project with installation instructions can be found here: https://github.com/chases2/ahab-sturdy-pancake
The text was updated successfully, but these errors were encountered: