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

Flaky shim test #7656

Merged
merged 4 commits into from
Jun 9, 2020
Merged

Flaky shim test #7656

merged 4 commits into from
Jun 9, 2020

Conversation

ssoroka
Copy link
Contributor

@ssoroka ssoroka commented Jun 9, 2020

pre-patch was seeing this fail about 1 in 50.
now passes 10000 test runs with no failures.

@ssoroka ssoroka requested a review from reimda June 9, 2020 18:56
plugins/inputs/execd/shim/goshim.go Outdated Show resolved Hide resolved

// we can get stuck if stdout gets clogged up and nobody's reading from it.
// make sure we keep it going
func readUntilEmpty(r *bufio.Reader) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't the shim code we are testing be doing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, because this is the read end of the out pipe coming from the shim.

@ssoroka ssoroka merged commit dda46ea into master Jun 9, 2020
@ssoroka ssoroka deleted the flaky-shim-test branch June 9, 2020 20:24
rhajek pushed a commit to bonitoo-io/telegraf that referenced this pull request Jul 13, 2020
idohalevi pushed a commit to idohalevi/telegraf that referenced this pull request Sep 29, 2020
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants