Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pubsublite): ack assignment after removed subscribers have terminated #4217

Merged
merged 3 commits into from Jun 15, 2021

Conversation

tmdiep
Copy link
Contributor

@tmdiep tmdiep commented Jun 4, 2021

  • assigningSubscriber - Return from handleAssignment() after partition subscribers have fully terminated. This waits for pending commits to be acknowledged by the server. This avoids commits races with the next assigned client.
  • assigner - Just a no-op refactor to wait for receiveAssignment() to finish without holding the mutex, since it's now blocking on IO.

@tmdiep tmdiep requested review from a team as code owners June 4, 2021 06:16
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 4, 2021
@product-auto-label product-auto-label bot added the api: pubsublite Issues related to the Pub/Sub Lite API. label Jun 4, 2021
@tmdiep tmdiep merged commit 0ad3f16 into googleapis:master Jun 15, 2021
@tmdiep tmdiep deleted the assigner_wait_committed branch June 15, 2021 20:49
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 Pub/Sub Lite API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants