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 — Publisher Limit Exceeded Behavior defaults to IGNORE while Java library defaults to BLOCK · Issue #1055 · googleapis/python-pubsub

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

Publisher Limit Exceeded Behavior defaults to IGNORE while Java library defaults to BLOCK #1055

Copy link
Copy link
Closed
Closed
Publisher Limit Exceeded Behavior defaults to IGNORE while Java library defaults to BLOCK#1055
Copy link
Assignees
mukund-ananthu
Labels
api: pubsubIssues related to the googleapis/python-pubsub API.

Description

@oryband
oryband
opened on Dec 25, 2023
Issue body actions

The default publisher limit exceeded behavior is inconsistent between Python and Java libraries. Python "silently" skips messages while Java blocks. I'm migrating an application from Java to Python, and I was surprised the behavior to be different. How come? Both libraries use thread pools without async-io (or it's java equivalent). At the very least this inconsistency should be documented and emphasized.

  • Python default settings:

    python-pubsub/google/cloud/pubsub_v1/types.py

    Line 130 in 265f410

    limit_exceeded_behavior: LimitExceededBehavior = LimitExceededBehavior.IGNORE
  • Java default settings: https://github.com/googleapis/java-pubsub/blob/1c79ad7336f51ffd4e177be5c2f2a7de902b47b8/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/Publisher.java#L697

Activity

  1. blunderbuss-gcf
    assigned
    pradn
    on Dec 25, 2023
  2. product-auto-label
    added
    api: pubsubIssues related to the googleapis/python-pubsub API.
    on Dec 25, 2023
  3. mukund-ananthu
    assigned
    mukund-ananthu
    and unassigned
    pradn
    on Mar 5, 2024
  4. mukund-ananthu commented on Mar 6, 2024

    @mukund-ananthu
    mukund-ananthu
    on Mar 6, 2024
    Contributor
    More actions

    Hi @oryband , looking at the lines you refer to in the post, I see that currently:

    1. Python:
      limit_exceeded_behavior: LimitExceededBehavior = LimitExceededBehavior.IGNORE

    2. Java:

    .setFlowControlSettings(
                    FlowControlSettings.newBuilder()
                        .setLimitExceededBehavior(FlowController.LimitExceededBehavior.Ignore)
                        .build())

    Where both languages have the behavior as ignore. Could you please let me know where you observe this deviation?

  5. mukund-ananthu commented on Mar 12, 2024

    @mukund-ananthu
    mukund-ananthu
    on Mar 12, 2024
    Contributor
    More actions

    @oryband , Closing this issue as not reproducible due to the reasons mentioned in #1055 (comment). Please feel free to re-open the issue if required.

  6. mukund-ananthu
    closed this as completedon Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @mukund-ananthu
    mukund-ananthu

Labels

api: pubsubIssues related to the googleapis/python-pubsub API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.