-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flowControl.maxMessages is being ignored #784
Comments
The output produced from my test script:
The messages in my script are |
@sjb933 the backend doesn't actually let us configure how many messages it sends per batch, so unless the subscription.setOptions({
flowControl: {
allowExcessMessages: false,
maxMessages: 2
}
}); |
@callmehiphop confirmed, Was this a new option, or did it perhaps default to false before? Thanks you for the quick support! |
I think it shipped with |
@callmehiphop seems like this has recently changed (#1041) - does this mean we no longer require the |
Can confirm that you still need https://cloud.google.com/pubsub/docs/pull#synchronous_pull_with_lease_management |
As per #784 Co-authored-by: Megan Potter <[email protected]>
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/5f7f9c6d-c75a-4c60-8bb8-0026a14cead7/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 325949033 Source-Link: googleapis/googleapis@94006b3
flowControl.maxMessages
is seemingly being ignored. I've created a small focused test repo to highlight the issue.Environment details
@google-cloud/pubsub
version: 1.1.2Steps to reproduce
See: https://github.com/sjb933/gcloud-pubsub-maxMessage-bug
npm install
test.ts
and populateGOOGLE_PROJECT_ID
with a proper project ID which you have authenticated access tonpm start
Observations:
Expected: 10 messages published, only 2 process concurrently.
Actual: 10 messages published, all 10 process concurrently.
The text was updated successfully, but these errors were encountered: