-
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
Index out of range panic in solr input #3604
Comments
Hi @windspear, Could you provide more info? What Solr version are you using, what's the result of:
|
solr version is 4.9.1 i use command curl -svo result.txt http://localhost:8983/solr/resource/admin/mbeans?stats=true&wt=json&cat=CORE&cat=QUERYHANDLER&cat=UPDATEHANDLER&cat=CACHE curl -svo result.txt http://localhost:8983/solr/resource/admin/mbeans?stats=true&wt=json&cat=CORE&cat=QUERYHANDLER&cat=UPDATEHANDLER&cat=CACHE
< HTTP/1.1 200 OK
and must put enter ,got this |
Try with quotes:
|
that's ok |
I am getting the same thing and I have a fix. I am hoping to create a pull request today, I just want to make sure I have appropriate tests and all my ducks in a row. The issue happens when the |
Fix will be in 1.5.2, thanks to @mkboudreau |
CentOS release 6.4
Telegraf v1.5.0 (git: release-1.5 a1668bb)
use solr plugin as default config
[[inputs.solr]]
specify a list of one or more Solr servers
servers = ["http://localhost:8983"]
specify a list of one or more Solr cores (default - all)
cores = ["main"]
i got this error ,how to fix it ? thank you
Error in plugin [inputs.solr]: Get http://localhost:8983/solr/resource/admin/mbeans?stats=true&wt=json&cat=CORE&cat=QUERYHANDLER&cat=UPDATEHANDLER&cat=CACHE: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
panic: runtime error: index out of range
goroutine 475 [running]:
github.com/influxdata/telegraf/plugins/inputs/solr.addCoreMetricsToAcc(0x1d9cf80, 0xc4200dcdc0, 0xc4208a8fc8, 0x8, 0xc42073efc0, 0xbe86a97a80425d32, 0x1ca1ec2193, 0x1e89820, 0x4, 0xc4203fb660)
/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/solr/solr.go:249 +0x5e0
github.com/influxdata/telegraf/plugins/inputs/solr.(*Solr).gatherServerMetrics.func1(0xc4208a9720, 0xc4203f4ff0, 0xbe86a97a80425d32, 0x1ca1ec2193, 0x1e89820, 0xc4207b0841, 0x18, 0xc4208a8fc8, 0x8, 0x1d9cf80, ...)
/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/solr/solr.go:200 +0x173
created by github.com/influxdata/telegraf/plugins/inputs/solr.(*Solr).gatherServerMetrics
/home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/plugins/inputs/solr/solr.go:196 +0x261
The text was updated successfully, but these errors were encountered: