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

Recv next message after send returns EOF in gnmi input #7872

Merged
merged 1 commit into from
Jul 21, 2020

Conversation

danielnelson
Copy link
Contributor

Should fix the intermittent test failure.

#Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

@danielnelson danielnelson added the fix pr to fix corresponding bug label Jul 21, 2020
@danielnelson danielnelson added this to the 1.15.0 milestone Jul 21, 2020
Copy link
Contributor

@ssoroka ssoroka left a comment

Choose a reason for hiding this comment

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

Interesting.

@ssoroka
Copy link
Contributor

ssoroka commented Jul 21, 2020

Might be worth rerunning it a couple of times to see what happens?

@danielnelson
Copy link
Contributor Author

BTW, It seems the gRPC library is setup like this so that normally you would call Send and Recv from separate goroutines and each would know when to exit. It is also documented that Send can block if Recv is not being called, so it may even be possible for the plugin as it is now to deadlock, although I think it is unlikely or even impossible since we Send once/Recv once in lockstep.

@danielnelson
Copy link
Contributor Author

Ran the workflow 3 times with no failures: https://circleci.com/gh/influxdata/workflows/telegraf/tree/fix-gnmi-test

@danielnelson danielnelson merged commit b9a7188 into master Jul 21, 2020
@danielnelson danielnelson deleted the fix-gnmi-test branch July 21, 2020 22:24
danielnelson added a commit that referenced this pull request Jul 21, 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
fix pr to fix corresponding bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants