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

upgrade from v4.0.0 to v5.0.2, report "panic in the recoverable goroutine" #25144

Closed
seiya-annie opened this issue Jun 4, 2021 · 3 comments
Closed
Assignees
Labels
severity/major sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@seiya-annie
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

performance.feedback-probability: 0.05
upgrade from v4.0.0 to v5.0.2, then check log
[2021/06/04 09:54:28.823 +08:00] [INFO] [region_cache.go:971] ["switch region leader to specific leader due to kv return NotLeader"] [regionID=23] [currIdx=1] [leaderStoreID=3]
[2021/06/04 09:54:32.212 +08:00] [INFO] [domain.go:1249] ["updateStatsWorker exited."]
[2021/06/04 09:54:32.213 +08:00] [ERROR] [misc.go:113] ["panic in the recoverable goroutine"] [label=domain] [funcInfo=updateStatsWorker] [r={}] [stack="goroutine 740 [running]:\ngitpro.ttaallkk.top/pingcap/tidb/util.GetStack(...)\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb/util/misc.go:74\ngitpro.ttaallkk.top/pingcap/tidb/util.Recover(0x39affbd, 0x6, 0x39cf0b9, 0x11, 0x0, 0xc0006e4300)\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb/util/misc.go:117 +0x326\npanic(0x37a6c60, 0xc00406cdc0)\n\t/usr/local/go/src/runtime/panic.go:679 +0x1b2\ngitpro.ttaallkk.top/pingcap/tidb/statistics.decodeFeedbackForIndex(0xc000faf580, 0xc001fce630, 0xc003ff3e90, 0x0)\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb/statistics/feedback.go:910 +0x6c5\ngitpro.ttaallkk.top/pingcap/tidb/statistics.DecodeFeedback(0xc0041a4279, 0xf3, 0x3bd87, 0xc000faf580, 0xc003ff3e90, 0x0, 0xc000328c00, 0x0, 0x0)\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb/statistics/feedback.go:993 +0x108\ngitpro.ttaallkk.top/pingcap/tidb/statistics/handle.(*Handle).handleSingleHistogramUpdate(0xc00082fb90, 0x405e100, 0xc0012c8640, 0xc0006c2000, 0x3fe, 0x400, 0x0, 0x0)\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb/statistics/handle/update.go:799 +0x490\ngitpro.ttaallkk.top/pingcap/tidb/statistics/handle.(*Handle).HandleUpdateStats.func1(0xc000c158c8, 0xc00082fb90, 0x405e100, 0xc0012c8640, 0x0, 0x0)\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb/statistics/handle/update.go:707 +0x79f\ngitpro.ttaallkk.top/pingcap/tidb/statistics/handle.(*Handle).HandleUpdateStats(0xc00082fb90, 0x405e100, 0xc0012c8640, 0x405e100, 0xc0012c8640)\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb/statistics/handle/update.go:728 +0x121\ngitpro.ttaallkk.top/pingcap/tidb/domain.(*Domain).updateStatsWorker(0xc000c95040, 0x406c2a0, 0xc000fab900, 0x4039f20, 0xc0005bc990)\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb/domain/domain.go:1274 +0x43a\ncreated by github.com/pingcap/tidb/domain.(*Domain).UpdateTableStatsLoop\n\t/home/jenkins/agent/workspace/optimization-build-tidb-linux-amd/go/src/github.com/pingcap/tidb/domain/domain.go:1139 +0x1c7\n"]

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

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

---------------------------------------------------------------------+
| Release Version: v5.0.2
Edition: Community
Git Commit Hash: f610f8b
Git Branch: heads/refs/tags/v5.0.2
UTC Build Time: 2021-06-02 02:00:45
GoVersion: go1.13
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false |
+----------------------------------

@seiya-annie seiya-annie added type/bug The issue is confirmed as a bug. severity/major labels Jun 4, 2021
@bb7133 bb7133 added the sig/planner SIG: Planner label Jun 4, 2021
@bb7133 bb7133 assigned rebelice and unassigned bb7133 Jun 4, 2021
@bb7133
Copy link
Member

bb7133 commented Jun 4, 2021

Looks that it is related to stats feedback, PTAL @rebelice

@rebelice
Copy link
Contributor

Close it because it can not be reproduce.

@github-actions
Copy link

Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label.

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

No branches or pull requests

3 participants