-
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
Check for nil on mongo input, fix for panic. #2848
Check for nil on mongo input, fix for panic. #2848
Conversation
Thanks for the fix, can you rebase against master and sign the CLA? |
I change the base branch on github, but unfortunately it still needs rebased to remove all the commits in the branch that are not in master. |
Hi Daniel, I signed the NDA. I apologize for the delay, my git skills are still a work-in-progress, I hope I did this correctly. If not please let me know. |
Can you do an interactive rebase and remove the commits that were added when I switched the base branch? It goes something like this (assuming the influxdata/telegraf repos is a remote called origin and your forks remote is called fork):
|
Daniel, I'm not sure how to resolve this:
Editor pops up, set all but af90b0a to 'r'.
I get this conflict:
In my setup:
Any ideas? Definitely going to spend some time on improving my |
Ignore that, using 'd' instead of 'r', misread the instructions. |
I'll get the hang of this! |
Based on the output of Update your master branch with the latests from the influxdata/telegraf repo
Interactively rebase your branch onto master
At this point you have the list of commits. The only new commit you have is bf8349f, so you can remove the other lines so that your editor looks just has a single pick:
When you run
|
5e1bc72
to
d4fd824
Compare
Daniel, thanks for your help, I've followed your instructions, let me know if you need anything else. |
(cherry picked from commit e7f9db2)
Thanks, this will be in the 1.3.1 release. |
Upgraded to telegraf 1.3, mongo input is generating panics in our environment:
panic: interface conversion: interface {} is nil, not bool
goroutine 238 [running]:
github.com/influxdata/telegraf/plugins/inputs/mongodb.NewStatLine(0xed0b6827e, 0xc5670ba, 0x1bea540, 0xc4204700f0, 0xc42
03024a0, 0xc420b95668, 0xc4201746c0, 0xed0b68288, 0x568a97d, 0x1bea540, ...)
/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/mongodb/mongostat.go:567 +0x1bb2
github.com/influxdata/telegraf/plugins/inputs/mongodb.(*Server).gatherData(0xc420175000, 0x1b01540, 0xc420174f40, 0x4060
01, 0x0, 0x0)
/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/mongodb/mongodb_server.go:107 +0xd
0f
github.com/influxdata/telegraf/plugins/inputs/mongodb.(*MongoDB).gatherServer(0xc42013c080, 0xc420175000, 0x1b01540, 0xc
420174f40, 0x1144780, 0xc420402e40)
/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/mongodb/mongodb.go:163 +0x89
github.com/influxdata/telegraf/plugins/inputs/mongodb.(*MongoDB).Gather.func1(0xc421025230, 0x1b01540, 0xc420174f40, 0xc
42013c080, 0xc420175000)
/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/mongodb/mongodb.go:91 +0x73
created by github.com/influxdata/telegraf/plugins/inputs/mongodb.(*MongoDB).Gather
/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/mongodb/mongodb.go:92 +0x352
============================== 05/23/2017 15:20:50
PR resolves the issue for us. Thanks.
Required for all PRs: