GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: set MaxBytes for AckQueue by feywind · Pull Request #1963 · googleapis/nodejs-pubsub

This repository was archived by the owner on Oct 21, 2026. It is now read-only.

Conversation

@feywind

@feywind feywind commented Sep 6, 2024

Copy link
Copy Markdown
Contributor

This PR supersedes this one: #1897
Thanks to @dermasmid for getting that started; I'm starting a new one to have write access for changes and CI.

This implements a fix to keep ack/modack batches under a size that the server can handle.

Fixes #1864

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
dermasmid and others added 4 commits September 6, 2024 15:18
@dermasmid @feywind
fix: googleapis#1864
216f1cd
@feywind
feat: update maxBytes changes to use a fixed max size
c81d79a
@feywind
chore: remove "discount polyfill" for allSettled
eccca4b
@feywind
tests: add unit tests for maxBytes handling
9687928
@feywind
feywind requested review from a team September 6, 2024 20:16
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: pubsub Issues related to the googleapis/nodejs-pubsub API. labels Sep 6, 2024
@feywind feywind added the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 6, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 6, 2024
feywind
feywind commented Sep 6, 2024
View reviewed changes
Comment thread test/message-queues.ts
}
}

// This discount polyfill for Promise.allSettled can be removed after we drop Node 12.

@feywind feywind Sep 6, 2024

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This and the related changes below are just cleanup I did while in here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
hongalex
hongalex reviewed Sep 6, 2024
View reviewed changes
Comment thread src/message-queues.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@feywind
fix: do the maxMessages and maxBytes checks _before_ adding
37be5b9
@feywind feywind mentioned this pull request Sep 11, 2024
fix: set MaxBytes for AckQueue #1897
Closed
@feywind
fix: roll back nise package to avoid semver breakage
3193822
@feywind

feywind commented Sep 11, 2024

Copy link
Copy Markdown
Contributor Author

More info about the semver thing over here: googleapis/nodejs-bigquery-storage#475

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@feywind feywind added the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 11, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 11, 2024
feywind added 2 commits September 11, 2024 17:18
@feywind
chore: move the nise version fix to devDependencies (oops)
1134ccb
@feywind
chore: pin rimraf in samples package to avoid typescript breakage in …
1132880
…lru-cache
@feywind feywind added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 12, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 12, 2024
@feywind
chore: also pin lru-cache, remove unneeded rimraf types
08e250b
@feywind feywind added the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 12, 2024
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 12, 2024
hongalex
hongalex approved these changes Sep 12, 2024
View reviewed changes
@feywind
feywind merged commit 5945563 into googleapis:main Sep 13, 2024
@feywind
feywind deleted the gh1897-maxbytes branch September 13, 2024 17:11
@release-please release-please Bot mentioned this pull request Sep 13, 2024
chore(main): release 4.7.2 #1967
Merged
dermasmid
dermasmid reviewed Nov 12, 2024
View reviewed changes
Comment thread src/message-queues.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@feywind feywind mentioned this pull request Nov 12, 2024
fix: KiB, not MiB for ack size limits #1999
Merged
This was referenced Apr 16, 2025
Retried ack requests are re-queued without respecting batch limits #2026
Closed
fix: check batch size before re-queueing retried messages #2027
Merged
@drickferreira drickferreira mentioned this pull request Feb 9, 2026
Update dependency @google-cloud/pubsub to ^5.2.1 to fix modifyAckDeadline 524288 bytes error on retry flocasts/nestjs-google-pubsub-connector#68
Open
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@hongalex hongalex hongalex approved these changes
@dermasmid dermasmid dermasmid left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Failed to "ack" for 3000 message(s). Reason: 3 INVALID_ARGUMENT: Request payload size exceeds the limit: 524288 bytes

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@feywind @hongalex @dermasmid @yoshi-kokoro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.