【 TiDB 版本】7.5.1
【复现路径】下载了tidb的包,make ut
会有一些测试失败,其中有一个是TestLoadPartitionStats
,失败原因如下;但是当单独跑这个测试的时候,这个测试会通过。
make ut
的部分结果:
--- FAIL: TestLoadPartitionStats (3.09s)
dump_test.go:37:
Error Trace: /home/qianwang/workspace/tidb-server/tidb-server/pkg/statistics/handle/storage/dump_test.go:37
/home/qianwang/workspace/tidb-server/tidb-server/pkg/statistics/handle/storage/dump_test.go:222
Error: Not equal:
expected: 10000
actual : 625
Test: TestLoadPartitionStats
单独跑这个测试的语句:
make failpoint-enable
cd tidb-server/pkg/statistics/handle/storage
go test -v -run "^TestLoadPartitionStats$"
cd ../../../../..
make failpoint-disable
测试通过:
--- PASS: TestLoadPartitionStats (1.76s)
PASS
ok github.com/pingcap/tidb/pkg/statistics/handle/storage 2.016s