Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: Add ReassignmentHandler which is notified on client reassignment - #242

#242
Merged
dpcollins-google merged 3 commits into
maingoogleapis/python-pubsublite:mainfrom
reassignment_handlergoogleapis/python-pubsublite:reassignment_handlerCopy head branch name to clipboard
Sep 16, 2021
Merged

feat: Add ReassignmentHandler which is notified on client reassignment#242
dpcollins-google merged 3 commits into
maingoogleapis/python-pubsublite:mainfrom
reassignment_handlergoogleapis/python-pubsublite:reassignment_handlerCopy head branch name to clipboard

Conversation

@dpcollins-google

Copy link
Copy Markdown
Contributor

This enables clients to respond to a reassignment by cancelling outstanding actions and nacking all messages.

This enables clients to respond to a reassignment by cancelling outstanding actions and nacking all messages.
@dpcollins-google
dpcollins-google requested review from a team and tmdiep September 15, 2021 20:47
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 15, 2021
@product-auto-label product-auto-label Bot added the api: pubsublite Issues related to the googleapis/python-pubsublite API. label Sep 15, 2021
class ReassignmentHandler(ABC):
"""
A ReassignmentHandler is called any time a new partition assignment is received from the server.
It will be called with both the previous and new assignments as decided by the backend.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto comments from the Java PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copied over the docstring changes- python unfortunately cannot implement the stronger semantics around message delivery, but I've documented this.

@dpcollins-google dpcollins-google added automerge Merge the pull request once unit tests and other checks pass. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Sep 16, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 16, 2021
@dpcollins-google dpcollins-google added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 16, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 16, 2021
@dpcollins-google
dpcollins-google merged commit 80fd5f6 into main Sep 16, 2021
@dpcollins-google
dpcollins-google deleted the reassignment_handler branch September 16, 2021 14:43
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Sep 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: pubsublite Issues related to the googleapis/python-pubsublite API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.