-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
telegraf swallowing panics #2341
Comments
I'm wondering if this has been the cause of some issue reports lately that claim no metrics are being written, but no error is being produced. Such as #2331 |
sparrc
added a commit
that referenced
this issue
Feb 1, 2017
this defer function was causing telegraf to call os.Exit(0) instead of panicking when it was supposed to. closes #2341
sparrc
added a commit
that referenced
this issue
Feb 1, 2017
this defer function was causing telegraf to call os.Exit(0) instead of panicking when it was supposed to. closes #2341
AFAICT this issue only happens in --test mode |
3 tasks
sparrc
added a commit
that referenced
this issue
Feb 1, 2017
this defer function was causing telegraf to call os.Exit(0) instead of panicking when it was supposed to. closes #2341
sparrc
added a commit
that referenced
this issue
Feb 2, 2017
this defer function was causing telegraf to call os.Exit(0) instead of panicking when it was supposed to. closes #2341
sparrc
added a commit
that referenced
this issue
Feb 2, 2017
this defer function was causing telegraf to call os.Exit(0) instead of panicking when it was supposed to. closes #2341
sparrc
added a commit
that referenced
this issue
Feb 2, 2017
this defer function was causing telegraf to call os.Exit(0) instead of panicking when it was supposed to. closes #2341
bullshit
pushed a commit
to bullshit/telegraf
that referenced
this issue
Feb 2, 2017
this defer function was causing telegraf to call os.Exit(0) instead of panicking when it was supposed to. closes influxdata#2341
mlindes
pushed a commit
to Comcast/telegraf
that referenced
this issue
Feb 6, 2017
this defer function was causing telegraf to call os.Exit(0) instead of panicking when it was supposed to. closes influxdata#2341
maxunt
pushed a commit
that referenced
this issue
Jun 26, 2018
this defer function was causing telegraf to call os.Exit(0) instead of panicking when it was supposed to. closes #2341
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Relevant telegraf.conf:
System info:
[Include Telegraf version, operating system name, and other relevant details]
Telegraf current master (738cbbd)
Relevant telegraf.conf:
Steps to reproduce:
panic("foo")
from within a plugin'sGather()
. For example theGather()
method on the system/cpu plugintelegraf -config /tmp/telegraf.conf -test
Expected behavior:
Actual behavior:
Use case: [Why is this important (helps with prioritizing requests)]
I was trying to develop on a plugin, but whenever I ran telegraf, absolutely no output was produced. Eventually I figured out that my code was causing a panic, but it was rather difficult to figure out because my panic was being thrown away.
The text was updated successfully, but these errors were encountered: