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

pubsub: fix potential deadlock in startConnections#1674

Merged
pongad merged 1 commit into
googleapis:mastergoogleapis/google-cloud-java:masterfrom
pongad:subscriber-start-raceCopy head branch name to clipboard
Mar 8, 2017
Merged

pubsub: fix potential deadlock in startConnections#1674
pongad merged 1 commit into
googleapis:mastergoogleapis/google-cloud-java:masterfrom
pongad:subscriber-start-raceCopy head branch name to clipboard

Conversation

@pongad

@pongad pongad commented Mar 1, 2017

Copy link
Copy Markdown
Contributor

If a subscriber connection fails, awaitRunning will throw
IllegalStateException.
We must make sure that we count down the latch in either case;
otherwise startup will deadlock.

Also move the call to addListener above startAsync.
Otherwise, the listener might not see the connection failing
if it fails too quickly.

cc @davidtorres @mdietz94

If a subscriber connection fails, awaitRunning will throw
IllegalStateException.
We must make sure that we count down the latch in either case;
otherwise startup will deadlock.

Also move the call to addListener above startAsync.
Otherwise, the listener might not see the connection failing
if it fails too quickly.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 1, 2017
@garrettjonesgoogle

Copy link
Copy Markdown
Contributor

Makes sense to me - @davidtorres can you take a look?

@davidtorres davidtorres left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks Michael

@pongad
pongad merged commit a32c41a into googleapis:master Mar 8, 2017
@pongad
pongad deleted the subscriber-start-race branch March 8, 2017 22:48
rybosome pushed a commit to rybosome/google-cloud-java that referenced this pull request Mar 9, 2017
If a subscriber connection fails, awaitRunning will throw
IllegalStateException.
We must make sure that we count down the latch in either case;
otherwise startup will deadlock.

Also move the call to addListener above startAsync.
Otherwise, the listener might not see the connection failing
if it fails too quickly.
suztomo pushed a commit that referenced this pull request Feb 1, 2023
…500)

Revert "chore(deps): update dependency protobuf to v3.20.2 (#1659)"

This reverts commit b59cf7b5a91ecab29e21fdfbb7e3b81066229be4.
Source-Link: https://togithub.com/googleapis/synthtool/commit/a66e34625d760ad299627f6613a1bd438c1b62a9
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:bd316b9a591c45264775ecaba72e37d65905925c323b68e51a08c4126e4b6d0a
chingor13 pushed a commit that referenced this pull request Jan 6, 2026
…904)

Revert "chore(deps): update dependency protobuf to v3.20.2 (#1659)"

This reverts commit b59cf7b5a91ecab29e21fdfbb7e3b81066229be4.
Source-Link: googleapis/synthtool@a66e346
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:bd316b9a591c45264775ecaba72e37d65905925c323b68e51a08c4126e4b6d0a

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
chingor13 pushed a commit that referenced this pull request Jan 22, 2026
…902)

Revert "chore(deps): update dependency protobuf to v3.20.2 (#1659)"

This reverts commit b59cf7b5a91ecab29e21fdfbb7e3b81066229be4.
Source-Link: googleapis/synthtool@a66e346
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:bd316b9a591c45264775ecaba72e37d65905925c323b68e51a08c4126e4b6d0a

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
…is#1674) (googleapis#1035)

Revert "chore(deps): update dependency protobuf to v3.20.2 (googleapis#1659)"

This reverts commit b59cf7b5a91ecab29e21fdfbb7e3b81066229be4.
Source-Link: https://togithub.com/googleapis/synthtool/commit/a66e34625d760ad299627f6613a1bd438c1b62a9
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:bd316b9a591c45264775ecaba72e37d65905925c323b68e51a08c4126e4b6d0a
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
…o v1.123.20 (#1674)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.123.19` -> `1.123.20` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-pubsub/1.123.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-pubsub/1.123.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-pubsub/1.123.19/1.123.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-pubsub/1.123.19/1.123.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/java-pubsub (com.google.cloud:google-cloud-pubsub)</summary>

### [`v1.123.20`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#112320-2023-07-25)

##### Dependencies

-   Update dependency com.google.cloud:google-cloud-bigquery to v2.31.0 ([#&#8203;1671](https://togithub.com/googleapis/java-pubsub/issues/1671)) ([c51d396](https://togithub.com/googleapis/java-pubsub/commit/c51d39688464c51ffdb046368b4f8e926360d72e))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMS4wIiwidXBkYXRlZEluVmVyIjoiMzYuMTEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
meltsufin pushed a commit that referenced this pull request May 1, 2026
…o v1.123.20 (#1674)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-pubsub](https://togithub.com/googleapis/java-pubsub) | `1.123.19` -> `1.123.20` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.cloud:google-cloud-pubsub/1.123.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.google.cloud:google-cloud-pubsub/1.123.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.google.cloud:google-cloud-pubsub/1.123.19/1.123.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.cloud:google-cloud-pubsub/1.123.19/1.123.20?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/java-pubsub (com.google.cloud:google-cloud-pubsub)</summary>

### [`v1.123.20`](https://togithub.com/googleapis/java-pubsub/blob/HEAD/CHANGELOG.md#112320-2023-07-25)

##### Dependencies

-   Update dependency com.google.cloud:google-cloud-bigquery to v2.31.0 ([#&#8203;1671](https://togithub.com/googleapis/java-pubsub/issues/1671)) ([cd4c8b5](https://togithub.com/googleapis/java-pubsub/commit/cd4c8b51b3f1a328fedcd98cc562cbe04f275ab5))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/java-pubsub).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMS4wIiwidXBkYXRlZEluVmVyIjoiMzYuMTEuMCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->
benjaminp pushed a commit to benjaminp/google-cloud-java that referenced this pull request Jul 13, 2026
…is#1674) (#1486)

Revert "chore(deps): update dependency protobuf to v3.20.2 (googleapis#1659)"

This reverts commit b59cf7b5a91ecab29e21fdfbb7e3b81066229be4.
Source-Link: googleapis/synthtool@a66e346
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:bd316b9a591c45264775ecaba72e37d65905925c323b68e51a08c4126e4b6d0a

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
benjaminp pushed a commit to benjaminp/google-cloud-java that referenced this pull request Jul 13, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

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