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

Limit wait time for writes in mqtt output #3699

Merged
merged 2 commits into from
Jan 22, 2018
Merged

Limit wait time for writes in mqtt output #3699

merged 2 commits into from
Jan 22, 2018

Conversation

danielnelson
Copy link
Contributor

By limiting the amount of time we will wait for message to be sent, we avoid deadlock in the mqtt output.

closes #3697

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 Jan 19, 2018
@danielnelson danielnelson added this to the 1.5.2 milestone Jan 19, 2018
@@ -25,6 +26,9 @@ var sampleConfig = `
# username = "telegraf"
# password = "metricsmetricsmetricsmetrics"

## Timeout for write operations. default: 5s
# timeout = "5s"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This option already existed but was undocumented and unused.

@adityask2
Copy link

@danielnelson Can we have this code checked in v1.5.2?

@danielnelson danielnelson merged commit 91fc276 into master Jan 22, 2018
@danielnelson danielnelson deleted the mqtt-timeout branch January 22, 2018 19:15
danielnelson added a commit that referenced this pull request Jan 22, 2018
codesmith14 pushed a commit to signalfx/telegraf that referenced this pull request Jun 19, 2018
maxunt pushed a commit that referenced this pull request Jun 26, 2018
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.

Telegraf fails stop sending metrics - took longer to collect than collection interval
2 participants