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 — fix: Fixing the shutdown logic for streaming subscriber connection by maitrimangal · Pull Request #1613 · googleapis/java-pubsub

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

Conversation

@maitrimangal

@maitrimangal maitrimangal commented Jun 13, 2023

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@maitrimangal
fix: Fixing the shutdown logic for streaming subscriber connection
4f3e7d9
@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 suggested changes Jun 13, 2023
View reviewed changes

@hannahrogers-google hannahrogers-google left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
hannahrogers-google
hannahrogers-google reviewed Jun 14, 2023
View reviewed changes
Comment thread google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnection.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@maitrimangal
fix: Fixing the shutdown logic for streaming subscriber connection
dcc68d1
@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
hannahrogers-google
hannahrogers-google approved these changes Jun 14, 2023
View reviewed changes
@maitrimangal
maitrimangal requested a review from kamalaboulhosn June 14, 2023 18:48
@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
🦉 Updates from OwlBot post-processor
0c661f2
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
@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
@release-please release-please Bot mentioned this pull request Jun 20, 2023
chore(main): release 1.123.15 #1609
Merged
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@kamalaboulhosn kamalaboulhosn Awaiting requested review from kamalaboulhosn
1 more reviewer
@hannahrogers-google hannahrogers-google hannahrogers-google approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: pubsub Issues related to the googleapis/java-pubsub API. size: s Pull request size is small.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Shutdown order seems to be backwards

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@maitrimangal @hannahrogers-google @yoshi-kokoro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.