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

flaky test TestAnalyzePartitionTableWithDynamicMode #51856

Closed
Tracked by #41316
lcwangchao opened this issue Mar 18, 2024 · 2 comments · Fixed by #52169
Closed
Tracked by #41316

flaky test TestAnalyzePartitionTableWithDynamicMode #51856

lcwangchao opened this issue Mar 18, 2024 · 2 comments · Fixed by #52169
Assignees
Labels

Comments

@lcwangchao
Copy link
Collaborator

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

--- FAIL: TestAnalyzePartitionTableWithDynamicMode (0.94s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x140006a39c0 addr=0x104f75280 pc=0x106ef1668]

goroutine 98 [running]:
testing.tRunner.func1.2({0x108cb64c0, 0x10b821be0})
	/Users/wangchao/.gvm/gos/go1.21.0/src/testing/testing.go:1545 +0x1c8
testing.tRunner.func1()
	/Users/wangchao/.gvm/gos/go1.21.0/src/testing/testing.go:1548 +0x360
panic({0x108cb64c0?, 0x10b821be0?})
	/Users/wangchao/.gvm/gos/go1.21.0/src/runtime/panic.go:914 +0x218
github.com/pingcap/tidb/pkg/statistics/handle/storage.loadNeededColumnHistograms({0x109405bc8, 0x140003c5680}, {0x1093b8c00, 0x1400b968300}, {0x68, 0x1, 0x0, 0x1}, 0x0)
	/Users/wangchao/Code/pingcap/tidb/pkg/statistics/handle/storage/read.go:647 +0x3f8
github.com/pingcap/tidb/pkg/statistics/handle/storage.LoadNeededHistograms({0x109405bc8, 0x140003c5680}, {0x1093b8c00, 0x1400b968300}, 0x0?)
	/Users/wangchao/Code/pingcap/tidb/pkg/statistics/handle/storage/read.go:550 +0xb0
github.com/pingcap/tidb/pkg/statistics/handle/storage.(*statsReadWriter).LoadNeededHistograms.func1({0x109405bc8, 0x140003c5680})
	/Users/wangchao/Code/pingcap/tidb/pkg/statistics/handle/storage/stats_read_writer.go:336 +0x70
github.com/pingcap/tidb/pkg/statistics/handle/util.WrapTxn({0x109405bc8, 0x140003c5680}, 0x140006a5bc8)
	/Users/wangchao/Code/pingcap/tidb/pkg/statistics/handle/util/util.go:185 +0xb8
github.com/pingcap/tidb/pkg/statistics/handle/util.CallWithSCtx({0x10936e320, 0x140094553e0}, 0x140006a5bc8, {0x140006a5bc0, 0x1, 0x0?})
	/Users/wangchao/Code/pingcap/tidb/pkg/statistics/handle/util/util.go:101 +0x150
github.com/pingcap/tidb/pkg/statistics/handle/storage.(*statsReadWriter).LoadNeededHistograms(0x1400ae004d0)
	/Users/wangchao/Code/pingcap/tidb/pkg/statistics/handle/storage/stats_read_writer.go:334 +0x6c
github.com/pingcap/tidb/pkg/executor/test/analyzetest.TestAnalyzePartitionTableWithDynamicMode(0x140000adf98?)
	/Users/wangchao/Code/pingcap/tidb/pkg/executor/test/analyzetest/analyze_test.go:2221 +0x4d8
testing.tRunner(0x14000683a00, 0x109344c60)
	/Users/wangchao/.gvm/gos/go1.21.0/src/testing/testing.go:1595 +0xe8
created by testing.(*T).Run in goroutine 1
	/Users/wangchao/.gvm/gos/go1.21.0/src/testing/testing.go:1648 +0x33c
run all tasks takes 9m45.632587833s
make: *** [ut] Error 1

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

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

@Rustin170506
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants