-
Notifications
You must be signed in to change notification settings - Fork 227
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
Receiving lots of duplicate messages #88
Comments
Thanks for reporting. Do you think this is a duplicate of #68? |
It could be, but I haven't noticed any regularity (e.g. the 15 min spikes) like in #68. The dupes come pretty quickly (the repro scenario above only takes a couple of mins to run anyway). It feels like in some cases the modifyAckDeadline isn't getting back to the pubsub in time (the initial lease is for 10s I think) |
@jamessharp we've made some adjustments to the flow control which I think should help cut down on duplicate messages. If you have the bandwidth to test #92 that would be fantastic! |
It feels like it's happening less frequently, but I've just run the above code (putting 10000 messages in rather than 2000) and ended up handling 10875 (i.e. 875 were duplicated). The subscription had an ack deadline of 600s and the first dupes came in after around 40s Also, for the record, getting the following console log appearing every 15s or so:
|
@jamessharp I merged a pr (#99) that should help cut down on the number of duplicates. However it doesn't appear to completely fix the issue. I'm going to continue to monitor this and any new info can be tracked via #83. Thanks again for opening this issue and testing our changes! |
As I commented on googleapis/google-cloud-java#2465, The StreamingPull server-side API has a bug that makes it unusable for topics containing small messages (such as GCS Object Change Notifications). If the caller of I think a rule of thumb that might work is, if there ever is a backlog and a single subscriber cannot clear the entire backlog within an hour, then don’t use |
Hi
I've been getting a lot of duplicate messages recently, specifically when running with a largeish backlog of messages, limited
maxMessages
and delayed acking. I have downgraded to v0.13 (i.e. before StreamingPull) and the dupes have disappeared.This could possibly be related to #68, googleapis/google-cloud-java#2465 and googleapis/google-cloud-go#778
Environment details
Steps to reproduce
The following reproduces the issue fairly reliably in a container on GKE, though the number of duplicates we were seeing in our actual usage was higher than this seems to produce.
publisher
subscriber
Let me know if I can provide any more information
The text was updated successfully, but these errors were encountered: