Skip to content

flaky test TestAnalyzePartitionTableWithDynamicMode #51856

@lcwangchao

Description

@lcwangchao

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions