Hello, community!
I'm facing an issue with Pub/Sub subscription metrics (Push delivery type with Write to BigQuery). Specifically, I see unacked messages in some subscriptions, even though all other metrics indicate normal behavior. I can't figure out why these unacknowledged messages exist or what causes them.
For example, one of my subscriptions is configured as follows:
Unacked messages metric (last 6 hours):
Delivery metrics and Delivery latency health score (last 6 hours):
Based on these metrics, there shouldn't be any unacknowledged messages — every message appears to be acknowledged.
Could anyone share insights on potential reasons for this? Is this an expected behavior under certain conditions, or could it be a bug? Any guidance on troubleshooting or relevant documentation would be greatly appreciated.
Thank you in advance.
Hi tiger2417,
Welcome to the Google Cloud Community!
The likely cause why you're seeing unacknowledged messages in your Pub/Sub subscription is BigQuery write failures, which could result from transient errors, schema mismatches, quota limits, or invalid data. Another possibility is the expiry of the acknowledgement deadline if BigQuery insertions take too long, causing delays in acknowledging messages.
Here are some suggestions that might help you with troubleshooting:
You may also find this documentation helpful, as it provides additional information why you are receiving duplicate messages.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.