在修改了配置信息后,运行 tiup cluster reload clusterxxx 时,输出信息包含如下错误(恢复修改前的配置,同样运行 reload 命令得到相同的错误信息):
OS: Rocky Linux 9.6, x86-64
TiDB: v8.5.3
-
[ Serial ] - Upgrade Cluster
Upgrading component tiflash
Executing pre-upgrade command on 10.0.0.219Restarting instance 10.0.0.219:9000 Restart instance 10.0.0.219:9000 success Executing post-upgrade command on 10.0.0.219
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xf770b1]
goroutine 1 [running]:
github.com/pingcap/tiup/pkg/cluster/operation.Upgrade({, }, {, }, {{0x0, 0x0, 0x0}, {0x0, 0x0, 0x0}, …}, …)
github.com/pingcap/tiup/pkg/cluster/operation/upgrade.go:202 +0x14b1
github.com/pingcap/tiup/pkg/cluster/manager.(*Manager).Reload.func2({0x154bb80?, 0xc0006156e0?})
github.com/pingcap/tiup/pkg/cluster/manager/reload.go:134 +0x90
github.com/pingcap/tiup/pkg/cluster/task.(*Func).Execute(0xc00034ff28?, {0x154bb80?, 0xc0006156e0?})
github.com/pingcap/tiup/pkg/cluster/task/func.go:34 +0x27
github.com/pingcap/tiup/pkg/cluster/task.(*Serial).Execute(0xc000a4b7e0, {0x154bb80, 0xc0006156e0})
github.com/pingcap/tiup/pkg/cluster/task/task.go:86 +0x21d
github.com/pingcap/tiup/pkg/cluster/manager.(*Manager).Reload(, {, _}, {{0x0, 0x0, 0x0}, {0x0, 0x0, 0x0}, 0x0, …}, …)
github.com/pingcap/tiup/pkg/cluster/manager/reload.go:145 +0xfaf
github.com/pingcap/tiup/components/cluster/command.newReloadCmd.func1(0xc00044d208?, {0xc00039f2c0, 0x4?, 0x135671a?})
github.com/pingcap/tiup/components/cluster/command/reload.go:40 +0xde
github.com/spf13/cobra.(*Command).execute(0xc00044d208, {0xc00039f280, 0x1, 0x1})
github.com/spf13/cobra@v1.6.1/command.go:916 +0x85c
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001f8f08)
github.com/spf13/cobra@v1.6.1/command.go:1044 +0x3a5
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/cobra@v1.6.1/command.go:968
github.com/pingcap/tiup/components/cluster/command.Execute()
github.com/pingcap/tiup/components/cluster/command/root.go:251 +0x271
main.main()
github.com/pingcap/tiup/components/cluster/main.go:23 +0x45
