-
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
Random DEADLINE_EXCEEDED errors emitted for modifyAckDeadline and acknowledge #568
Comments
These are safe to ignore as these are retry-able errors. Ideally we should hide these behind a higher level logging flag. |
@jkwlui I'm not sure this should be closed as this should ideally be handled internally. For us these errors cause the subscription on In the mean time, can you advise on how to retry something after the |
That a failed ack / modAck request would hang the client seems like a bug
or red herring. Those failures should generally be harmless as they are
best effort anyway. Peter, how frequently do you see these errors, per
time and per message?
…On Fri, Sep 27, 2019 at 11:12 AM Filip Suk ***@***.***> wrote:
We are still facing the same issue, have you found any workarounds @mkls
<https://github.com/mkls> @pjm17971 <https://github.com/pjm17971> ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#568?email_source=notifications&email_token=AENMYFQJCQ4WOJQNCEQAFQTQLYPFPA5CNFSM4HEH4JW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7ZG2FQ#issuecomment-535981334>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AENMYFRHZZXCOQPW3HFEI23QLYPFPANCNFSM4HEH4JWQ>
.
--
Kir Titievsky | Product Manager | Google Cloud Pub/Sub
<https://cloud.google.com/pubsub/overview>
|
We are facing the same issue, this error puts the app in a state of not receiving messages at all. Any workaround? Thanks, |
@mahaben while this error can be frustrating, I am pretty concerned to hear that it puts your application into that kind of state. Might I trouble you for some additional details? Are you seeing an uncaught exception/unhandled rejection when this error occurs? |
This happened to us mainly when doing CPU intensive work while processing task queue from pubsub. However I found a suitable workaround, using the general library fixed the issue for me https://github.com/googleapis/google-api-nodejs-client |
I think this is probably a duplicate of #770 so I'm going to close this out. If anyone feels that this is an error, let us know and we'll be happy to re-open. |
I'm still getting this error, and since I don't know a better place to post this, I'm posting it here. This looks like an error from the pubsub api server, I don't know what this error means and I found this docs: https://cloud.google.com/pubsub/docs/reference/error-codes which does have some explanation for the I'm using pubusb version |
Still seeing this issue in 2023 with Could we reopen this? @callmehiphop |
^ @bcoe (I assume you're still here??) |
Environment details
@google-cloud/pubsub
version: 0.28.1We are processing about 300 messages per second from a subscription, and about once or twice a day we randomly get DEADLINE_EXCEEDED errors emitted like these:
Failed to "acknowledge" for 55 message(s). Reason: 4 DEADLINE_EXCEEDED: Deadline Exceeded
and
Failed to "modifyAckDeadline" for 63 message(s). Reason: 4 DEADLINE_EXCEEDED: Deadline Exceeded
Steps to reproduce
A minimal setup is something like this:
Our processMessage function usually takes around 150ms to run, with highest peaks of 1500ms.
The acknowledgement deadline for the subscription in cloud console is set to 600 seconds.
We've looked through similar issues and tried experimenting with setting
as a subscription option as described in #240.
Also tried setting the
ackDeadline
subscription option, but neither of them seemed to help.We've also looked through the source code of this repo, but couldn't figure out much, other than these errors come from MessageQueues for ack and nack messages, and seem to be coming through
google-gax
from somewhere ingrpc
.Locally I can make the client emit these errors, if I set
{ batching: { callOptions: { timeout: 1 }}}
, but in production this value is set to a much higher value.We could just ignore these errors, but it would feel better if someone could give some tips on how to find the root cause or what could be going wrong .
The text was updated successfully, but these errors were encountered: