E52C feat: Enable server side flow control by default with the option to turn it off by fayssalmartanigcp · Pull Request #231 · googleapis/python-pubsub · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

feat: Enable server side flow control by default with the option to turn it off#231

Merged
kamalaboulhosn merged 4 commits intogoogleapis:masterfrom
fayssalmartanigcp:master
Nov 10, 2020
Merged

feat: Enable server side flow control by default with the option to turn it off#231
kamalaboulhosn merged 4 commits intogoogleapis:masterfrom
fayssalmartanigcp:master

Conversation

@fayssalmartanigcp
Copy link
Contributor
@fayssalmartanigcp fayssalmartanigcp commented Nov 5, 2020

This change enables sending flow control settings automatically to the server. If flow_control.max_messages > 0 or flow_control.max_bytes > 0, flow control will be enforced at the server side (in addition to the client side).

This behavior is enabled by default and users who would like to opt-out of this feature --in case they encounter issues with server side flow control-- can pass in use_legacy_flow_control=True in SubscriberClient.subscribe().

… off

This change enables sending flow control settings automatically to the server. If flow_control.max_messages > 0 or flow_control.max_bytes > 0, flow control will be enforced at the server side (in addition to the client side).

This behavior is enabled by default and users who would like to opt-out of this feature --in case they encouter issues with server side flow control-- can pass in use_legacy_flow_control=True in SubscriberClient.subscribe().
@fayssalmartanigcp fayssalmartanigcp requested a review from a team November 5, 2020 20:34
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 5, 2020
@product-auto-label product-auto-label bot added the api: pubsub Issues related to the googleapis/python-pubsub API. label Nov 5, 2020
… off

This change enables sending flow control settings automatically to the server.
If flow_control.max_messages > 0 or flow_control.max_bytes > 0, flow control will be enforced
at the server side (in addition to the client side).

This behavior is enabled by default and users who would like to opt-out of this feature
--in case they encouter issues with server side flow control-- can pass in
use_legacy_flow_control=true in subscriberclient.subscribe().
@fayssalmartanigcp fayssalmartanigcp changed the title Enable server side flow control by default with the option to turn it off feat: Enable server side flow control by default with the option to turn it off Nov 5, 2020
@pradn pradn added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 10, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 10, 2020
@kamalaboulhosn kamalaboulhosn added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 10, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 10, 2020
@kamalaboulhosn kamalaboulhosn merged commit 94d738c into googleapis:master Nov 10, 2020
anguillanneuf added a commit that referenced this pull request Nov 10, 2020
feat: Enable server side flow control by default with the option to turn it off (#231)

* Enable server side flow control by default with the option to turn it off

This change enables sending flow control settings automatically to the server. If flow_control.max_messages > 0 or flow_control.max_bytes > 0, flow control will be enforced at the server side (in addition to the client side).

This behavior is enabled by default and users who would like to opt-out of this feature --in case they encouter issues with server side flow control-- can pass in use_legacy_flow_control=True in SubscriberClient.subscribe().

* Enable server side flow control by default with the option to turn it off

This change enables sending flow control settings automatically to the server.
If flow_control.max_messages > 0 or flow_control.max_bytes > 0, flow control will be enforced
at the server side (in addition to the client side).

This behavior is enabled by default and users who would like to opt-out of this feature
--in case they encouter issues with server side flow control-- can pass in
use_legacy_flow_control=true in subscriberclient.subscribe().

Co-authored-by: Tianzi Cai <tianzi@google.com>

fix: replace AssertionError with NotFound

fix: add another pytest fixture in failing test

remove backoff
anguillanneuf added a commit that referenced this pull request Dec 11, 2020
* fix: reorder tests

* fix: increase timeout

* fix: use backoff

feat: Enable server side flow control by default with the option to turn it off (#231)

* Enable server side flow control by default with the option to turn it off

This change enables sending flow control settings automatically to the server. If flow_control.max_messages > 0 or flow_control.max_bytes > 0, flow control will be enforced at the server side (in addition to the client side).

This behavior is enabled by default and users who would like to opt-out of this feature --in case they encouter issues with server side flow control-- can pass in use_legacy_flow_control=True in SubscriberClient.subscribe().

* Enable server side flow control by default with the option to turn it off

This change enables sending flow control settings automatically to the server.
If flow_control.max_messages > 0 or flow_control.max_bytes > 0, flow control will be enforced
at the server side (in addition to the client side).

This behavior is enabled by default and users who would like to opt-out of this feature
--in case they encouter issues with server side flow control-- can pass in
use_legacy_flow_control=true in subscriberclient.subscribe().

Co-authored-by: Tianzi Cai <tianzi@google.com>

fix: replace AssertionError with NotFound

fix: add another pytest fixture in failing test

remove backoff

* add py version in resource names

* keep pulling until response is not None

* use fstrings

* change scope to session and set retry deadline

* lint and increase timeout to 90 for dlq receive
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/python-pubsub API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

0