-
Notifications
You must be signed in to change notification settings - Fork 311
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
deprecate pubsub PullRequest returnImmediately flag #309
Comments
Thanks for the report. We had discussions of deprecating this in the past, though had trouble coordinating this change with the Pub/Sub team. Will follow-up and ask what is our long-term plan for this. @meltsufin @elefeint |
Related to: spring-attic/spring-cloud-gcp#2247. |
I think my biggest issue is that setting returnImmediately to true has some serious side effect for us (message delivery delayed for hours), the flag itself is deprecated and there is no mentioning in documentation or javaDoc. Spring template documentation should at least discourage people from using this flag |
This sounds like a bug potentially. Can you elaborate how the use of this flag delays message delivery? |
sure, please read through this ticket Also google doc states
|
@lukasGemela Thanks for the reference to the ticket. We'll work internally to figure out how to proceed and update this issue soon. |
@lukasGemela The word from the Pub/Sub team is that the way An alternative is to use the streaming subscriber. Have you explored that? |
I also got more details on why |
yes, I did, but that does not really fit our use case. But we just set returnImmediately flag to false and it works fine now, as stated under that google issue. I would at least add something into clients javadoc/documentation that setting this flag to true is not recommended and why 🤷♂️ |
Yes, we'll do that. Thanks for bringing up this issue so that we can document it better. |
Updates javadocs and reference documentation with a warning. However, we decided not to deprecate the field for now. Addresses: #309.
…m#354) Updates javadocs and reference documentation with a warning. However, we decided not to deprecate the field for now. Fixes: GoogleCloudPlatform#309.
Sonar rule: "JUnit5 test classes and methods should have default package visibility"
Is your feature request related to a problem? Please describe.
whilst investigating problems with delayed pubsub messages we found out that our problems were caused by returnImmediately flag set to true. According to documentation this flag is actually deprecated server-side and they heavily discourage from using it now:
https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#pullrequest
Describe the solution you'd like
Either remove it or deprecate it using annotation.
Describe alternatives you've considered
No alternatives.
Additional context
We could also do the PR but I open this report to run decision whether keep the flag in deprecated state or remove it completely.
The text was updated successfully, but these errors were encountered: