-
Notifications
You must be signed in to change notification settings - Fork 32
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
Error when filtering stats by --tubes #17
Comments
Hi, Backtrace
I tried to debug this and was able to figure out this issue and a fix. The To fix this, I removed the render statement and the if statement inside the for loop (line 58) and things seem to work fine. I have created a pull request with the fix. |
- Remove printing of Default Tube stats whether Getstats returns data for it or not - Remove the special condition to continue for default tube Signed-off-by: Ramkumar K R <[email protected]>
Hi!
I'm trying to filter the stats output by a list of tubes and am getting the following error. Initially I was listing several tubes separated by commas but I realised the same error occurs even with just a single tube.
`beanstool stats --host=xxx.xxx.xxx.xxx:11301 --tubes=dispatcher-fast
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x46664f]
goroutine 1 [running]:
github.com/src-d/beanstool/cli.(*StatsCommand).buildLineFromTubeStats(0xc8200126c0, 0x6316d8, 0x7, 0x0, 0x0, 0x0, 0x0)
/Users/mcuadros/workspace/go/src/github.com/src-d/beanstool/cli/stats.go:76 +0x8f
github.com/src-d/beanstool/cli.(*StatsCommand).PrintStats(0xc8200126c0, 0x0, 0x0)
/Users/mcuadros/workspace/go/src/github.com/src-d/beanstool/cli/stats.go:58 +0x1b5
github.com/src-d/beanstool/cli.(*StatsCommand).Execute(0xc8200126c0, 0xc820013170, 0x0, 0x3, 0x0, 0x0)
/Users/mcuadros/workspace/go/src/github.com/src-d/beanstool/cli/stats.go:36 +0x74
github.com/jessevdk/go-flags.(*Parser).ParseArgs(0xc820078190, 0xc82000a1d0, 0x3, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/mcuadros/workspace/go/src/github.com/jessevdk/go-flags/parser.go:301 +0xa16
github.com/jessevdk/go-flags.(*Parser).Parse(0xc820078190, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/mcuadros/workspace/go/src/github.com/jessevdk/go-flags/parser.go:175 +0x9b
main.main()
/Users/mcuadros/workspace/go/src/github.com/src-d/beanstool/beanstool.go:21 +0x6d4`
The text was updated successfully, but these errors were encountered: