Sitelet https://github.com/googleapis/nodejs-pubsub/pull/2027
Skip to content
This repository was archived by the owner on Mar 17, 2026. It is now read-only.

fix: check batch size before re-queueing retried messages - #2027

Merged
feywind merged 8 commits into
googleapis:mainfrom
1kilobit:fix/flush-before-requeuing-retries
Sep 19, 2025
Merged

feywind merged 8 commits into
googleapis:mainfrom
1kilobit:fix/flush-before-requeuing-retries

Conversation

@1kilobit

@1kilobit 1kilobit commented Apr 16, 2025 •

Copy link
Copy Markdown
Contributor

Fixes #2026 🦕

This adds the same batch size-based flushing logic added to MessageQueue.add() in PR #1963 to MessageQueue.handleRetry(), which also queues into the next batch.

@1kilobit
1kilobit requested review from a team April 16, 2025 22:22
@google-cla

google-cla Bot commented Apr 16, 2025

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@product-auto-label product-auto-label Bot added size: s Pull request size is small. api: pubsub Issues related to the googleapis/nodejs-pubsub API. labels Apr 16, 2025
@feywind

feywind commented May 8, 2025

Copy link
Copy Markdown
Collaborator

@1kilobit Thanks for the PR, I just noticed that I missed this!

feywind
feywind previously approved these changes May 13, 2025
@feywind feywind added the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 19, 2025
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 19, 2025
@feywind feywind added kokoro:force-run Add this label to force Kokoro to re-run the tests. owlbot:run Add this label to trigger the Owlbot post processor. labels Sep 19, 2025
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 19, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: pubsub Issues related to the googleapis/nodejs-pubsub API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retried ack requests are re-queued without respecting batch limits

4 participants