-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
affects-7.5This bug affects the 7.5.x(LTS) versions.This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.severity/majorsig/plannerSIG: PlannerSIG: Plannertype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
add assertion like

2. What did you expect to see? (Required)
success to run.
3. What did you see instead (Required)
fail to run
--- FAIL: TestGetOracleTime (35.78s)
panic: assert failed [recovered]
panic: assert failed [recovered]
panic: assert failed
goroutine 122 [running]:
testing.tRunner.func1.2({0x8f63d40, 0xc0089bced0})
GOROOT/src/testing/testing.go:1632 +0x3fc
testing.tRunner.func1()
GOROOT/src/testing/testing.go:1635 +0x6b6
panic({0x8f63d40?, 0xc0089bced0?})
GOROOT/src/runtime/panic.go:791 +0x132
github.com/pingcap/tidb/pkg/executor.(*Compiler).Compile.func1()
pkg/executor/compiler.go:59 +0x5a5
panic({0x8f63d40?, 0xc0089bced0?})
GOROOT/src/runtime/panic.go:791 +0x132
github.com/pingcap/tidb/pkg/util/intest.doPanic({0x0, 0x0}, {0x0, 0x0, 0x0})
pkg/util/intest/assert_common.go:58 +0x79
github.com/pingcap/tidb/pkg/util/intest.doAssert(0x0, {0x0, 0x0, 0x0})
pkg/util/intest/assert_common.go:30 +0x6e
github.com/pingcap/tidb/pkg/util/intest.Assert(0x0, {0x0, 0x0, 0x0})
pkg/util/intest/assert.go:25 +0x9e
github.com/pingcap/tidb/pkg/util/ranger.getPotentialEqOrInColOffset(0xc00867aee0, {0xa6e1c60, 0xc00867aaf0}, {0xc00b624108, 0x1, 0x1})
pkg/util/ranger/detacher.go:141 +0x87d
github.com/pingcap/tidb/pkg/util/ranger.ExtractEqAndInCondition(0xc00867aee0, {0xc006bb3580, 0x2, 0x2}, {0xc00b624108, 0x1, 0x1}, {0xc008702038, 0x1, 0x1})
pkg/util/ranger/detacher.go:735 +0x22a
github.com/pingcap/tidb/pkg/util/ranger.(*rangeDetacher).detachCNFCondAndBuildRangeForIndex(0xc006cd86d0, {0xc006bb3580, 0x2, 0x2}, {0xc00b624118, 0x1, 0x1}, 0x1)
pkg/util/ranger/detacher.go:401 +0x1ab
github.com/pingcap/tidb/pkg/util/ranger.(*rangeDetacher).detachCondAndBuildRangeForCols(0xc006cd86d0)
pkg/util/ranger/detacher.go:1097 +0x45b
github.com/pingcap/tidb/pkg/util/ranger.DetachCondAndBuildRangeForIndex(0xc00867aee0, {0xc006bb3580, 0x2, 0x2}, {0xc00b624108, 0x1, 0x1}, {0xc008702038, 0x1, 0x1}, ...)
pkg/util/ranger/detacher.go:1032 +0x185
github.com/pingcap/tidb/pkg/planner/core.detachCondAndBuildRangeForPath({0xa6a0058, 0xc005f94af0}, 0xc007f60d80, {0xc006bb3580, 0x2, 0x2}, 0xc0091a1920)
pkg/planner/core/stats.go:397 +0x2a5
github.com/pingcap/tidb/pkg/planner/core.fillIndexPath(0xc00655b508, 0xc007f60d80, {0xc006bb3580, 0x2, 0x2})
pkg/planner/core/stats.go:205 +0xa25
github.com/pingcap/tidb/pkg/planner/core.deriveStats4DataSource({0xa6de968, 0xc00655b508})
pkg/planner/core/stats.go:141 +0xaa5
github.com/pingcap/tidb/pkg/planner/core/operator/logicalop.(*DataSource).DeriveStats(0xc00655b508, {0x22c16ac?, 0x22c72f5?, 0x1?}, 0x8?, {0x8?, 0xc006cd8d40?, 0x224ffeb?}, {0xfc31300, 0x0, ...})
pkg/planner/core/operator/logicalop/logical_datasource.go:308 +0x52
github.com/pingcap/tidb/pkg/planner/core/operator/logicalop.(*BaseLogicalPlan).RecursiveDeriveStats(0xc00655b528, {0x0, 0x0, 0x0})
pkg/planner/core/operator/logicalop/base_logical_plan.go:235 +0x56f
github.com/pingcap/tidb/pkg/planner/core/operator/logicalop.(*BaseLogicalPlan).RecursiveDeriveStats(0xc006738620, {0x0, 0x0, 0x0})
pkg/planner/core/operator/logicalop/base_logical_plan.go:226 +0x2b8
github.com/pingcap/tidb/pkg/planner/core/operator/logicalop.(*BaseLogicalPlan).RecursiveDeriveStats(0xc006bace20, {0x0, 0x0, 0x0})
pkg/planner/core/operator/logicalop/base_logical_plan.go:226 +0x2b8
github.com/pingcap/tidb/pkg/planner/core.physicalOptimize({0xa6de688, 0xc006bace00}, 0xc0087cffa8)
pkg/planner/core/optimizer.go:1133 +0x1f9
github.com/pingcap/tidb/pkg/planner/core.VolcanoOptimize({0xa642e10, 0xc0098a8e10}, {0xa6a0058, 0xc005f94af0}, 0x61002, {0xa6de688, 0xc006bace00})
pkg/planner/core/optimizer.go:362 +0x245
github.com/pingcap/tidb/pkg/planner/core.doOptimize({0xa642e10, 0xc0098a8e10}, {0xa6a0058, 0xc005f94af0}, 0x61002, {0xa6de688, 0xc006bace00})
pkg/planner/core/optimizer.go:286 +0x1b5
github.com/pingcap/tidb/pkg/planner/core.DoOptimize({0xa642e10, 0xc0098a8e10}, {0xa6a0058, 0xc005f94af0}, 0x61002, {0xa6de688, 0xc006bace00})
pkg/planner/core/optimizer.go:411 +0x1f6
github.com/pingcap/tidb/pkg/planner/core.(*PlanBuilder).buildUpdate(0xc0071d90e0, {0xa642e10, 0xc0098a8e10}, 0xc00bd98210)
pkg/planner/core/logical_plan_builder.go:5604 +0x1a5b
github.com/pingcap/tidb/pkg/planner/core.(*PlanBuilder).Build(0xc0071d90e0, {0xa642e10, 0xc0098a8e10}, 0xc006cda668)
pkg/planner/core/planbuilder.go:549 +0xa25
github.com/pingcap/tidb/pkg/planner.buildLogicalPlan({0xa642e10, 0xc0098a8e10}, {0xa6a0058, 0xc005f94af0}, 0xc006cda668, 0xc0071d90e0)
pkg/planner/optimize.go:571 +0x365
github.com/pingcap/tidb/pkg/planner.optimize({0xa642e10, 0xc0098a8e10}, {0xa6a0058, 0xc005f94af0}, 0xc006cda668, {0xa6a3470, 0xc00919e840})
pkg/planner/optimize.go:490 +0x7da
github.com/pingcap/tidb/pkg/planner.optimizeNoCache({0xa642e10, 0xc0098a8e10}, {0xa6e6b28, 0xc001b61b88}, 0xc006d5bc50, {0xa6a3470, 0xc00919e840})
pkg/planner/optimize.go:357 +0x1cd0
github.com/pingcap/tidb/pkg/planner.Optimize({0xa642e10, 0xc0098a8e10}, {0xa6e6b28, 0xc001b61b88}, 0xc006d5bc50, {0xa6a3470, 0xc00919e840})
pkg/planner/optimize.go:206 +0xc47
github.com/pingcap/tidb/pkg/executor.(*Compiler).Compile(0xc006cdb000, {0xa642e10, 0xc0098a8e10}, {0xa661d88, 0xc00bd98210})
pkg/executor/compiler.go:102 +0x951
github.com/pingcap/tidb/pkg/session.(*session).ExecuteStmt(0xc001b61b88, {0xa642e10, 0xc0098a8e10}, {0xa661d88, 0xc00bd98210})
pkg/session/session.go:2146 +0x12e5
github.com/pingcap/tidb/pkg/session.(*session).ExecuteInternal(0xc001b61b88, {0xa642e10, 0xc0098a8e10}, {0x9b2e4ad, 0x51}, {0xc006c025c0, 0x4, 0x4})
pkg/session/session.go:1571 +0x3f2
github.com/pingcap/tidb/pkg/session.mustExecute({0xa6fbdd0, 0xc001b61b88}, {0x9b2e4ad, 0x51}, {0xc006c025c0, 0x4, 0x4})
pkg/session/bootstrap.go:1321 +0x143
github.com/pingcap/tidb/pkg/session.writeStmtSummaryVars({0xa6fbdd0, 0xc001b61b88})
pkg/session/upgrade.go:992 +0x19f
github.com/pingcap/tidb/pkg/session.doDMLWorks({0xa6fbdd0, 0xc001b61b88})
pkg/session/bootstrap.go:1294 +0xc71
github.com/pingcap/tidb/pkg/session.bootstrap({0xa6fbdd0, 0xc001b61b88})
pkg/session/bootstrap.go:840 +0x50f
github.com/pingcap/tidb/pkg/session.runInBootstrapSession({0xa694a88, 0xc0021af860}, 0x0)
pkg/session/session.go:3792 +0x7c8
github.com/pingcap/tidb/pkg/session.bootstrapSessionImpl({0xa642c50, 0xfc31300}, {0xa694a88, 0xc0021af860}, 0x9be9220)
pkg/session/session.go:3529 +0x634
github.com/pingcap/tidb/pkg/session.BootstrapSession({0xa694a88, 0xc0021af860})
pkg/session/session.go:3465 +0x5a
github.com/pingcap/tidb/pkg/store/gcworker.bootstrap({0xa690a50, 0xc0012dad00}, {0xa694a88, 0xc0021af860}, 0xa7a358200)
pkg/store/gcworker/gc_worker_test.go:1690 +0x70
github.com/pingcap/tidb/pkg/store/gcworker.createGCWorkerSuiteWithStoreType(0xc0012dad00, 0x1, 0xa7a358200)
pkg/store/gcworker/gc_worker_test.go:177 +0x4da
github.com/pingcap/tidb/pkg/store/gcworker.createGCWorkerSuite(0xc0012dad00)
pkg/store/gcworker/gc_worker_test.go:149 +0x47
github.com/pingcap/tidb/pkg/store/gcworker.TestGetOracleTime(0xc0012dad00)
pkg/store/gcworker/gc_worker_test.go:303 +0x4a
testing.tRunner(0xc0012dad00, 0x9be84c0)
GOROOT/src/testing/testing.go:1690 +0x227
created by testing.(*T).Run in goroutine 1
GOROOT/src/testing/testing.go:1743 +0x826
4. What is your TiDB version? (Required)
Metadata
Metadata
Assignees
Labels
affects-7.5This bug affects the 7.5.x(LTS) versions.This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.This bug affects the 8.5.x(LTS) versions.severity/majorsig/plannerSIG: PlannerSIG: Plannertype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.