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 more races in pubsub tests #1473

Merged
merged 1 commit into from
Dec 12, 2016
Merged

fix more races in pubsub tests #1473

merged 1 commit into from
Dec 12, 2016

Conversation

pongad
Copy link
Contributor

@pongad pongad commented Dec 12, 2016

Previously BlockingProcessStreamReader has a terminate() method,
used to tell the Reader to stop reading from the emulator process.

This causes an inter-process race.
If the Reader stops before reading emulator's output,
the emulator process will hang as it tries to write to stdout/stderr
as there's no one to read from the other side of the pipe.

Since there is no way to safely stop the Reader,
this commit deletes the method and its associated test.

Additionally, the timeout for LocalSystemTest is increased to 3 minutes,
since the emulator, somehow, consistently takes just longer than a
minute to shut down.

Previously BlockingProcessStreamReader has a terminate() method,
used to tell the Reader to stop reading from the emulator process.

This causes an inter-process race.
If the Reader stops before reading emulator's output,
the emulator process will hang as it tries to write to stdout/stderr
as there's no one to read from the other side of the pipe.

Since there is no way to safely stop the Reader,
this commit deletes the method and its associated test.

Additionally, the timeout for LocalSystemTest is increased to 3 minutes,
since the emulator, somehow, consistently takes just longer than a
minute to shut down.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 12, 2016
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 83.516% when pulling 9a308a2 on pongad:fix-race into b85e1cc on GoogleCloudPlatform:master.

@garrettjonesgoogle
Copy link
Member

LGTM

@pongad pongad merged commit 15c9e23 into googleapis:master Dec 12, 2016
@pongad pongad deleted the fix-race branch December 12, 2016 23:54
github-actions bot pushed a commit that referenced this pull request Sep 15, 2022
🤖 I have created a release *beep* *boop*
---


### Updating meta-information for bleeding-edge SNAPSHOT release.

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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