Skip to content

Conversation

@pongad
Copy link
Contributor

@pongad pongad commented Mar 1, 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.

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
Member

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

Copy link

@davidtorres davidtorres left a comment

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
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