-
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.component/testseverity/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)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
==================
WARNING: DATA RACE
Write at 0x00c00f4ad180 by goroutine 58307:
github.com/pingcap/tidb/planner/core.(*PointGetPlan).statsInfo()
planner/core/point_get_plan.go:223 +0xfd
github.com/pingcap/tidb/planner/core.(*PointGetPlan).getEstRowCountForDisplay()
planner/core/point_get_plan.go:105 +0x119
github.com/pingcap/tidb/planner/core.encodeFlatPlanTree()
planner/core/encode.go:105 +0x241
github.com/pingcap/tidb/planner/core.EncodeFlatPlan()
planner/core/encode.go:62 +0x529
github.com/pingcap/tidb/executor.getEncodedPlan()
executor/adapter.go:1696 +0x164
github.com/pingcap/tidb/executor.(*ExecStmt).SummaryStmt.func1()
executor/adapter.go:1757 +0x64
github.com/pingcap/tidb/util/stmtsummary.newStmtSummaryByDigestElement()
util/stmtsummary/statement_summary.go:635 +0x78
github.com/pingcap/tidb/util/stmtsummary.(*stmtSummaryByDigest).add.func1()
util/stmtsummary/statement_summary.go:590 +0x26d
github.com/pingcap/tidb/util/stmtsummary.(*stmtSummaryByDigest).add()
util/stmtsummary/statement_summary.go:601 +0x54
github.com/pingcap/tidb/util/stmtsummary.(*stmtSummaryByDigestMap).AddStatement()
util/stmtsummary/statement_summary.go:344 +0x4f1
github.com/pingcap/tidb/util/stmtsummary/v2.Add()
util/stmtsummary/v2/stmtsummary.go:537 +0x9e
github.com/pingcap/tidb/executor.(*ExecStmt).SummaryStmt()
executor/adapter.go:1855 +0x1a14
github.com/pingcap/tidb/executor.(*ExecStmt).FinishExecuteStmt()
executor/adapter.go:1342 +0x604
github.com/pingcap/tidb/executor.(*ExecStmt).CloseRecordSet()
executor/adapter.go:1415 +0x50
github.com/pingcap/tidb/executor.(*recordSet).Close()
executor/adapter.go:180 +0xbd
github.com/pingcap/tidb/session.(*execStmtResult).Close()
session/session.go:2403 +0x6f
github.com/pingcap/tidb/server.(*tidbResultSet).Close()
server/driver_tidb.go:446 +0x64
github.com/pingcap/tidb/server.ResultSet.Close-fm()
<autogenerated>:1 +0x48
github.com/pingcap/tidb/parser/terror.Call()
parser/terror/terror.go:315 +0x4a
github.com/pingcap/tidb/server.(*clientConn).handleStmt.func1()
server/conn.go:2068 +0x39
runtime.deferreturn()
GOROOT/src/runtime/panic.go:476 +0x32
github.com/pingcap/tidb/server.(*clientConn).handleQuery()
server/conn.go:1852 +0xce4
github.com/pingcap/tidb/server.(*clientConn).dispatch()
server/conn.go:1339 +0x1537
github.com/pingcap/tidb/server.(*clientConn).Run()
server/conn.go:1120 +0x3db
github.com/pingcap/tidb/server.(*Server).onConn()
server/server.go:677 +0x249c
github.com/pingcap/tidb/server.(*Server).startNetworkListener.func1()
server/server.go:491 +0x47
Previous write at 0x00c00f4ad180 by goroutine 59382:
github.com/pingcap/tidb/planner/core.(*PointGetPlan).statsInfo()
planner/core/point_get_plan.go:223 +0xfd
github.com/pingcap/tidb/planner/core.(*PointGetPlan).getEstRowCountForDisplay()
planner/core/point_get_plan.go:105 +0x119
github.com/pingcap/tidb/planner/core.binaryOpFromFlatOp()
planner/core/common_plans.go:1230 +0x633
github.com/pingcap/tidb/planner/core.binaryOpTreeFromFlatOps()
planner/core/common_plans.go:1186 +0xf8
github.com/pingcap/tidb/planner/core.binaryDataFromFlatPlan()
planner/core/common_plans.go:1176 +0x206
github.com/pingcap/tidb/planner/core.BinaryPlanStrFromFlatPlan()
planner/core/common_plans.go:1146 +0x44
github.com/pingcap/tidb/executor.getBinaryPlan()
executor/adapter.go:1651 +0xaf
github.com/pingcap/tidb/executor.(*ExecStmt).SummaryStmt.func2()
executor/adapter.go:1762 +0x4b
github.com/pingcap/tidb/util/stmtsummary.newStmtSummaryByDigestElement()
util/stmtsummary/statement_summary.go:641 +0x12e
github.com/pingcap/tidb/util/stmtsummary.(*stmtSummaryByDigest).add.func1()
util/stmtsummary/statement_summary.go:590 +0x26d
github.com/pingcap/tidb/util/stmtsummary.(*stmtSummaryByDigest).add()
util/stmtsummary/statement_summary.go:601 +0x54
github.com/pingcap/tidb/util/stmtsummary.(*stmtSummaryByDigestMap).AddStatement()
util/stmtsummary/statement_summary.go:344 +0x4f1
github.com/pingcap/tidb/util/stmtsummary/v2.Add()
util/stmtsummary/v2/stmtsummary.go:537 +0x9e
github.com/pingcap/tidb/executor.(*ExecStmt).SummaryStmt()
executor/adapter.go:1855 +0x1a14
github.com/pingcap/tidb/executor.(*ExecStmt).FinishExecuteStmt()
executor/adapter.go:1342 +0x604
github.com/pingcap/tidb/executor.(*ExecStmt).CloseRecordSet()
executor/adapter.go:1415 +0x50
github.com/pingcap/tidb/executor.(*recordSet).Close()
executor/adapter.go:180 +0xbd
github.com/pingcap/tidb/session.(*execStmtResult).Close()
session/session.go:2403 +0x6f
github.com/pingcap/tidb/server.(*tidbResultSet).Close()
server/driver_tidb.go:446 +0x64
github.com/pingcap/tidb/server.ResultSet.Close-fm()
<autogenerated>:1 +0x48
github.com/pingcap/tidb/parser/terror.Call()
parser/terror/terror.go:315 +0x4a
github.com/pingcap/tidb/server.(*clientConn).handleStmt.func1()
server/conn.go:2068 +0x39
runtime.deferreturn()
GOROOT/src/runtime/panic.go:476 +0x32
github.com/pingcap/tidb/server.(*clientConn).handleQuery()
server/conn.go:1852 +0xce4
github.com/pingcap/tidb/server.(*clientConn).dispatch()
server/conn.go:1339 +0x1537
github.com/pingcap/tidb/server.(*clientConn).Run()
server/conn.go:1120 +0x3db
github.com/pingcap/tidb/server.(*Server).onConn()
server/server.go:677 +0x249c
github.com/pingcap/tidb/server.(*Server).startNetworkListener.func1()
server/server.go:491 +0x47
Goroutine 58307 (running) created at:
github.com/pingcap/tidb/server.(*Server).startNetworkListener()
server/server.go:491 +0x9bb
github.com/pingcap/tidb/server.(*Server).Run.func1()
server/server.go:406 +0x65
Goroutine 59382 (running) created at:
github.com/pingcap/tidb/server.(*Server).startNetworkListener()
server/server.go:491 +0x9bb
github.com/pingcap/tidb/server.(*Server).Run.func1()
server/server.go:406 +0x65
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.component/testseverity/majorsig/plannerSIG: PlannerSIG: Plannertype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.