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

analyze table return "analyze worker panic" #26507

Closed
An0nymous0 opened this issue Jul 23, 2021 · 3 comments
Closed

analyze table return "analyze worker panic" #26507

An0nymous0 opened this issue Jul 23, 2021 · 3 comments
Assignees
Labels
severity/major sig/planner SIG: Planner type/bug This issue is a bug.

Comments

@An0nymous0
Copy link

An0nymous0 commented Jul 23, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

analyze table metabase.metabase_field

Detailed file and table structure: https://asktug.com/t/topic/95448

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

analyze table metabase.metabase_field return analyze worker panic

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

Release Version: v5.1.0
Edition: Community
Git Commit Hash: 8acd5c88471cb7b4d4c4a8ed73b4d53d6833f13e
Git Branch: heads/refs/tags/v5.1.0
UTC Build Time: 2021-06-24 07:10:32
GoVersion: go1.16.4
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
@An0nymous0 An0nymous0 added the type/bug This issue is a bug. label Jul 23, 2021
@github-actions github-actions bot added this to Issue Backlog: Need Triage in SIG Planner Kanban Jul 23, 2021
@lcwangchao
Copy link
Collaborator

The some problem with stack:

[2021/07/26 23:01:18.995 +08:00] [ERROR] [analyze.go:1169] ["analyze worker panicked"] [stack="goroutine 59879 [running]:\ngithub.com/pingcap/tidb/executor.(*AnalyzeColumnsExec).subMergeWorker.func1(0x1401e5b2360, 0x1401e5b23c0, 0x1400c3fa480, 0x1)\n\t/Users/wangchao/Code/pingcap/tidb/executor/analyze.go:1167 +0xd0\npanic(0x1025c15a0, 0x104320f70)\n\t/usr/local/go/src/runtime/panic.go:965 +0x14c\ngithub.com/pingcap/tidb/statistics.(*RowSampleCollector).FromProto(0x140050e7f18, 0x0)\n\t/Users/wangchao/Code/pingcap/tidb/statistics/row_sampler.go:242 +0x28\ngithub.com/pingcap/tidb/executor.(*AnalyzeColumnsExec).subMergeWorker(0x1400c3fa480, 0x1401e5b2360, 0x1401e5b23c0, 0x174, 0x140050e7601)\n\t/Users/wangchao/Code/pingcap/tidb/executor/analyze.go:1213 +0x3c0\ncreated by github.com/pingcap/tidb/executor.(*AnalyzeColumnsExec).buildSamplingStats\n\t/Users/wangchao/Code/pingcap/tidb/executor/analyze.go:848 +0x514\n"]

@winoros
Copy link
Member

winoros commented Jul 28, 2021

fixed by #25311
will be released in v5.1.1

@winoros winoros closed this as completed Jul 28, 2021
SIG Planner Kanban automation moved this from Issue Backlog: Need Triage to Coding Finished (This Week) Jul 28, 2021
@ti-srebot
Copy link
Contributor

Please edit this comment or add a new comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

6. Fixed versions

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 This issue is a bug.
Projects
No open projects
SIG Planner Kanban
  
Coding Finished (This Week)
Development

No branches or pull requests

5 participants