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
This repository was archived by the owner on May 8, 2026. It is now read-only.

fix: Fixing the shutdown logic for streaming subscriber connection#1613

Merged
maitrimangal merged 3 commits into
googleapis:maingoogleapis/java-pubsub:mainfrom
maitrimangal:shutdownOrdermaitrimangal/java-pubsub:shutdownOrderCopy head branch name to clipboard
Jun 20, 2023
Merged

fix: Fixing the shutdown logic for streaming subscriber connection#1613
maitrimangal merged 3 commits into
googleapis:maingoogleapis/java-pubsub:mainfrom
maitrimangal:shutdownOrdermaitrimangal/java-pubsub:shutdownOrderCopy head branch name to clipboard

Conversation

@maitrimangal

Copy link
Copy Markdown
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #1544

If you write sample code, please follow the samples format.

@maitrimangal maitrimangal requested a review from a team June 13, 2023 19:50
@product-auto-label product-auto-label Bot added size: xs Pull request size is extra small. api: pubsub Issues related to the googleapis/java-pubsub API. labels Jun 13, 2023
@maitrimangal maitrimangal added kokoro:force-run Add this label to force Kokoro to re-run the tests. kokoro:run Add this label to force Kokoro to re-run the tests. labels Jun 13, 2023

@hannahrogers-google hannahrogers-google left a comment

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.

I don't think we can do this. In runShutdown(), we call ackOperationsWaiter.waitComplete(). Which waits for all outstanding acks to be sent on the stub. If we close the stub before calling runShutdown, all remaining acks will all fail with the CancelledException.

Nevermind - I was thinking it was the stub we were shutting down. Shutting down the clientStream should be ok

@yoshi-kokoro yoshi-kokoro removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jun 14, 2023
@maitrimangal maitrimangal added the owlbot:ignore instruct owl-bot to ignore a PR label Jun 15, 2023
@hannahrogers-google hannahrogers-google added owlbot:run Add this label to trigger the Owlbot post processor. and removed owlbot:ignore instruct owl-bot to ignore a PR labels Jun 20, 2023
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jun 20, 2023
@gcf-owl-bot gcf-owl-bot Bot requested a review from a team June 20, 2023 17:27
@product-auto-label product-auto-label Bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels Jun 20, 2023
@maitrimangal maitrimangal merged commit 09aff9c into googleapis:main Jun 20, 2023
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/java-pubsub API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shutdown order seems to be backwards

3 participants

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