question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

flowControl.maxMessages is being ignored

See original GitHub issue

flowControl.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

  1. Clone project
  2. npm install
  3. Open test.ts and populate GOOGLE_PROJECT_ID with a proper project ID which you have authenticated access to
  4. Execute the test with npm start
  5. Observe the output

Observations:

Expected: 10 messages published, only 2 process concurrently.

Actual: 10 messages published, all 10 process concurrently.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
callmehiphopcommented, Oct 17, 2019

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.

1reaction
sjb933commented, Oct 17, 2019

@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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found