You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: prevent GCP Pub/Sub SDK receipt modack from overriding visibility timeout
The GCP Pub/Sub native SDK sends a ModifyAckDeadline ("receipt modack")
when it first receives a message from StreamingPull. The deadline value
is based on the SDK's internal p99 ack-latency distribution, with a
minimum of 10s. This overrides the subscription's ackDeadlineSeconds
on the server side.
With MaxExtension=-1 (which disables keep-alive extensions), the
effective visibility timeout becomes 10s instead of the configured 60s.
Any handler that takes >10s triggers premature Pub/Sub redelivery,
causing duplicate processing and DLQ entries.
Add VisibilityTimeout to QueueConfig and set MinExtensionPeriod to
match it in the GCP Pub/Sub subscription, preventing the receipt modack
from shortening the deadline below the configured value.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: shut down subscription in init test to prevent message stealing
The first sub-test left its subscription running, causing it to steal
messages published by the second sub-test. The stolen message sat until
the ack deadline expired and Pub/Sub redelivered it — 60s with our
MinExtensionPeriod fix, 10s on main. Test now runs in ~1s.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments