flowControl.maxMessages is being ignored
See original GitHub issueflowControl.maxMessages
is seemingly being ignored. I’ve created a small focused test repo to highlight the issue.
Environment details
- OS: Mac OSX
- Node.js version: 8.16.2
- npm version: 6.4.1
@google-cloud/pubsub
version: 1.1.2
Steps to reproduce
See: https://github.com/sjb933/gcloud-pubsub-maxMessage-bug
- Clone project
npm install
- Open
test.ts
and populateGOOGLE_PROJECT_ID
with a proper project ID which you have authenticated access to - Execute the test with
npm start
- Observe the output
Observations:
Expected: 10 messages published, only 2 process concurrently.
Actual: 10 messages published, all 10 process concurrently.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Google Pub-sub flow-control with max_messages is not ...
I am using python library. flow_control = pubsub_v1.types.FlowControl( max_messages=1) scheduler = ThreadScheduler( ThreadPoolExecutor( 1, f" ...
Read more >Subscribe with flow control | Cloud Pub/Sub Documentation
Creates a subscriber with flow control settings, and receives messages. ... Change the flow control watermarks, by default the client library uses
Read more >RES: multiple smscs - Kannel
2007-04-27 15:25:08 [19502] [0] WARNING: Both 'allowed-smsc-id' and 'denied-smsc-id' set, deny-list automatically ignored I've also been ...
Read more >Understand Parameters Related to Mail Flow Policies ... - Cisco
Continue: The mapping in the HAT is ignored, and processing of the ... Max. Messages Per Connection: The maximum number of messages that...
Read more >Paging · ActiveMQ Artemis Documentation
Apache ActiveMQ Artemis will create one folder for each address being paged under this ... If you configure a max-size-bytes or max-messages for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think it shipped with
v0.23.0
which was released back in January. Before that we had behavior that mirrored setting it to false.@callmehiphop confirmed,
allowExcessMessages: false
resolves the issue. I’m in the process of updating to newer libs and this was revealed in our consuming code’s tests.Was this a new option, or did it perhaps default to false before?
Thanks you for the quick support!