pingcap / tidb

TiDB is an open-source, cloud-native, distributed, MySQL-Compatible database for elastic scale and real-time analytics. Try AI-powered Chat2Query free at : https://www.pingcap.com/tidb-serverless/
https://pingcap.com
Apache License 2.0
37.02k stars 5.82k forks source link

unstable test case TestDropPartitionStats #24015

Open XuHuaiyu opened 3 years ago

XuHuaiyu commented 3 years ago
[2021-04-09T07:00:05.771Z] FAIL: simple_test.go:606: testSerialSuite.TestDropPartitionStats
[2021-04-09T07:00:05.771Z] 
[2021-04-09T07:00:05.771Z] simple_test.go:633:
[2021-04-09T07:00:05.771Z]     tk.MustExec("analyze table t")
[2021-04-09T07:00:05.771Z] /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/util/testkit/testkit.go:217:
[2021-04-09T07:00:05.771Z]     tk.c.Assert(err, check.IsNil, check.Commentf("sql:%s, %v, error stack %v", sql, args, errors.ErrorStack(err)))
[2021-04-09T07:00:05.771Z] ... value *errors.withStack = [stats]: some partition level statistics are not in statistics version 2, please set tidb_analyze_version to 2 and analyze the this table ("[stats]: some partition level statistics are not in statistics version 2, please set tidb_analyze_version to 2 and analyze the this table")
[2021-04-09T07:00:05.771Z] ... sql:analyze table t, [], error stack [stats]: some partition level statistics are not in statistics version 2, please set tidb_analyze_version to 2 and analyze the this table
[2021-04-09T07:00:05.771Z] github.com/pingcap/errors.AddStack
[2021-04-09T07:00:05.771Z]  /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/pkg/mod/github.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/errors.go:174
[2021-04-09T07:00:05.771Z] github.com/pingcap/errors.Trace
[2021-04-09T07:00:05.771Z]  /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/pkg/mod/github.com/pingcap/errors@v0.11.5-0.20201126102027-b0a155152ca3/juju_adaptor.go:15
[2021-04-09T07:00:05.771Z] github.com/pingcap/tidb/util/testkit.(*TestKit).Exec
[2021-04-09T07:00:05.771Z]  /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/util/testkit/testkit.go:176
[2021-04-09T07:00:05.771Z] github.com/pingcap/tidb/util/testkit.(*TestKit).MustExec
[2021-04-09T07:00:05.771Z]  /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/util/testkit/testkit.go:216
[2021-04-09T07:00:05.771Z] github.com/pingcap/tidb/executor_test.(*testSerialSuite).TestDropPartitionStats
[2021-04-09T07:00:05.771Z]  /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/simple_test.go:633
[2021-04-09T07:00:05.771Z] reflect.Value.call
[2021-04-09T07:00:05.771Z]  /usr/local/go/src/reflect/value.go:460
[2021-04-09T07:00:05.771Z] reflect.Value.Call
[2021-04-09T07:00:05.771Z]  /usr/local/go/src/reflect/value.go:321
[2021-04-09T07:00:05.771Z] github.com/pingcap/check.(*suiteRunner).forkTest.func1
[2021-04-09T07:00:05.771Z]  /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:850
[2021-04-09T07:00:05.771Z] github.com/pingcap/check.(*suiteRunner).forkCall.func1
[2021-04-09T07:00:05.771Z]  /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/pkg/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:739
[2021-04-09T07:00:05.771Z] runtime.goexit
[2021-04-09T07:00:05.771Z]  /usr/local/go/src/runtime/asm_amd64.s:1357
XuHuaiyu commented 3 years ago

skip this test in PR https://github.com/pingcap/tidb/pull/24003

xhebox commented 3 years ago

Found that there is another issue for it, #23498 , do we close one? @XuHuaiyu

rebelice commented 3 years ago

I already submitted PR#23968 to solve this problem a few days ago

cosven commented 3 years ago

/severity major /sig execution

qw4990 commented 3 years ago

I'm working on this Now, and since this issue only affects our test case, I degrade its severity to moderate.