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

[Bug] The tools panic when show cluster status #2878

Closed
Wine93 opened this issue Nov 8, 2023 · 0 comments
Closed

[Bug] The tools panic when show cluster status #2878

Wine93 opened this issue Nov 8, 2023 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Wine93
Copy link
Contributor

Wine93 commented Nov 8, 2023

Panic stack

root@curvefs-etcd-df2a2c473efb:/curvefs/etcd# curve fs status cluster
panic: runtime error: slice bounds out of range [:-1]

goroutine 1 [running]:
github.com/opencurve/curve/tools-v2/internal/error.MergeCmdErrorExceptSuccess({0xc00028c2a0, 0x4, 0xce769d?})
        github.com/opencurve/curve/tools-v2/internal/error/error.go:214 +0x2dc
github.com/opencurve/curve/tools-v2/pkg/cli/command/curvefs/status/cluster.(*ClusterCommand).RunCommand(0xc0006c3600, 0xce8220?, {0x7?, 0x0?, 0x0?})
        github.com/opencurve/curve/tools-v2/pkg/cli/command/curvefs/status/cluster/cluster.go:107 +0x278
github.com/opencurve/curve/tools-v2/pkg/cli/command.NewFinalCurveCli.func1(0xc0005bd800, {0x1456380, 0x0, 0x0})
        github.com/opencurve/curve/tools-v2/pkg/cli/command/base.go:125 +0x165
github.com/spf13/cobra.(*Command).execute(0xc0005bd800, {0x1456380, 0x0, 0x0})
        github.com/spf13/[email protected]/command.go:940 +0x862
github.com/spf13/cobra.(*Command).ExecuteC(0xc0005b8000)
        github.com/spf13/[email protected]/command.go:1068 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
        github.com/spf13/[email protected]/command.go:992
github.com/opencurve/curve/tools-v2/pkg/cli.Execute()
        github.com/opencurve/curve/tools-v2/pkg/cli/curvecli.go:94 +0x110
main.main()
        ./main.go:30 +0x17
@Wine93 Wine93 added the bug Something isn't working label Nov 8, 2023
@Wine93 Wine93 added this to the CurveFS-2.7.0 milestone Nov 8, 2023
@Wine93 Wine93 assigned Cyber-SiKu and unassigned cw123 Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants