acknowledgments randomly fail with EXACTLY_ONCE_ACKID_FAILURE #1951
Labels
api: pubsub
Issues related to the googleapis/nodejs-pubsub API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
@google-cloud/pubsub
version: 4.5.0Steps to reproduce
subscriberClient.pull({ 1, returnImmediately: false, subscription: mySubscriptionId, })
subscriberClient.acknowledge({ ackIds: [message.ackId!], subscription: mySubscriptionId })
(at most several seconds after receiving, so message could not have expired yet)Most of the time above works fine, but rarely, acknowledgement will fail with the following error:
Relevant error seems to be
EXACTLY_ONCE_ACKID_FAILURE
, but we cannot find any documentation for this error anywhere.We are not sure what causes this. After this happens the received message will remain "un-ackable". The only workaround we found so far is to let the message expire and get redelivered. Redelivered message can in most cases be acked normally.
Any ideas what could cause this?
The text was updated successfully, but these errors were encountered: