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

panic when to deal with updateGlobalStats in the HandleDDLEvent #58715

Closed
hawkingrei opened this issue Jan 6, 2025 · 0 comments
Closed

panic when to deal with updateGlobalStats in the HandleDDLEvent #58715

hawkingrei opened this issue Jan 6, 2025 · 0 comments
Labels
affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. impact/panic severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@hawkingrei
Copy link
Member

hawkingrei commented Jan 6, 2025

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create a partition table without global stats and truncate a partition.

2. What did you expect to see? (Required)

3. What did you see instead (Required)

[2024/12/19 23:06:00.995 +08:00] [ERROR] [misc.go:116] ["panic in the recoverable goroutine"] [label=domain] [funcInfo=updateStatsWorker] [r="\"invalid memory address or nil pointer dereference\""] [stack="[github.com/pingcap/tidb/util.Recover](http://github.com/pingcap/tidb/util.Recover)\n\t/src/util/misc.go:120\nruntime.gopanic\n\t/go/src/runtime/panic.go:884\nruntime.panicmem\n\t/go/src/runtime/panic.go:260\nruntime.sigpanic\n\t/go/src/runtime/signal_unix.go:835\[ngithub.ghproxy.top/pingcap/tidb/statistics/handle.(](http://ngithub.ghproxy.top/pingcap/tidb/statistics/handle.()*Handle).updateGlobalStats\n\t/src/statistics/handle/ddl.go:168\[ngithub.ghproxy.top/pingcap/tidb/statistics/handle.(](http://ngithub.ghproxy.top/pingcap/tidb/statistics/handle.()*Handle).HandleDDLEvent\n\t/src/statistics/handle/ddl.go:60\[ngithub.ghproxy.top/pingcap/tidb/domain.(](http://ngithub.ghproxy.top/pingcap/tidb/domain.()*Domain).updateStatsWorker\n\t/src/domain/domain.go:1982\[ngithub.ghproxy.top/pingcap/tidb/domain.(](http://ngithub.ghproxy.top/pingcap/tidb/domain.()*Domain).UpdateTableStatsLoop.func1\n\t/src/domain/domain.go:1851\[ngithub.ghproxy.top/pingcap/tidb/util.(](http://ngithub.ghproxy.top/pingcap/tidb/util.()*WaitGroupWrapper).Run.func1\n\t/src/util/wait_group_wrapper.go:33"]

4. What is your TiDB version? (Required)

v6.5 (6.5.3)
v7.1 without missing global status.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. impact/panic severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

2 participants