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 in the HistoricalStatsWorkerLoop #49076

Closed
hawkingrei opened this issue Dec 1, 2023 · 0 comments · Fixed by #49077
Closed

panic in the HistoricalStatsWorkerLoop #49076

hawkingrei opened this issue Dec 1, 2023 · 0 comments · Fixed by #49077
Labels
affects-7.5 severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@hawkingrei
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

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

3. What did you see instead (Required)

[2023/12/01 03:12:52.070 +08:00] [ERROR] [misc.go:116] ["panic in the recoverable goroutine"] [label=domain] [funcInfo=HistoricalStatsWorkerLoop] [r="runtime error: invalid memory address or nil pointer dereference"] [stack="github.com/pingcap/tidb/pkg/util.Recover\n\t/home/jenkins/agent/workspace/pingcap/tidb/ghpr_check2/tidb/pkg/util/misc.go:120\nruntime.gopanic\n\t/usr/local/go/src/runtime/panic.go:914\nruntime.panicmem\n\t/usr/local/go/src/runtime/panic.go:261\nruntime.sigpanic\n\t/usr/local/go/src/runtime/signal_unix.go:861\ngithub.com/pingcap/tidb/pkg/statistics/handle/history.RecordHistoricalStatsToStorage\n\t/home/jenkins/agent/workspace/pingcap/tidb/ghpr_check2/tidb/pkg/statistics/handle/history/history_stats.go:132\ngithub.com/pingcap/tidb/pkg/statistics/handle/history.(*statsHistoryImpl).RecordHistoricalStatsToStorage.func1\n\t/home/jenkins/agent/workspace/pingcap/tidb/ghpr_check2/tidb/pkg/statistics/handle/history/history_stats.go:59\ngithub.com/pingcap/tidb/pkg/statistics/handle/util.WrapTxn\n\t/home/jenkins/agent/workspace/pingcap/tidb/ghpr_check2/tidb/pkg/statistics/handle/util/util.go:185\ngithub.com/pingcap/tidb/pkg/statistics/handle/util.CallWithSCtx\n\t/home/jenkins/agent/workspace/pingcap/tidb/ghpr_check2/tidb/pkg/statistics/handle/util/util.go:101\ngithub.com/pingcap/tidb/pkg/statistics/handle/history.(*statsHistoryImpl).RecordHistoricalStatsToStorage\n\t/home/jenkins/agent/workspace/pingcap/tidb/ghpr_check2/tidb/pkg/statistics/handle/history/history_stats.go:58\ngithub.com/pingcap/tidb/pkg/domain.(*HistoricalStatsWorker).DumpHistoricalStats\n\t/home/jenkins/agent/workspace/pingcap/tidb/ghpr_check2/tidb/pkg/domain/historical_stats.go:81\ngithub.com/pingcap/tidb/pkg/domain.(*Domain).StartHistoricalStatsWorker.func1\n\t/home/jenkins/agent/workspace/pingcap/tidb/ghpr_check2/tidb/pkg/domain/domain.go:2145\ngithub.com/pingcap/tidb/pkg/util.(*WaitGroupEnhancedWrapper).Run.func1\n\t/home/jenkins/agent/workspace/pingcap/tidb/ghpr_check2/tidb/pkg/util/wait_group_wrapper.go:99"]

4. What is your TiDB version? (Required)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-7.5 severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants