Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

race detected on master #25003

Closed
Tracked by #25899
zhouqiang-cl opened this issue May 31, 2021 · 4 comments
Closed
Tracked by #25899

race detected on master #25003

zhouqiang-cl opened this issue May 31, 2021 · 4 comments
Assignees
Labels
severity/major sig/transaction SIG:Transaction type/bug The issue is confirmed as a bug.

Comments

@zhouqiang-cl
Copy link
Contributor

Bug Report

[2021-05-31T13:56:54.899Z] [2021/05/31 21:56:54.799 +08:00] [ERROR] [server.go:214] ["deadlock found"] [entry="txn:425320622270185472 wait_for_txn:425320622271496192 key_hash:7333974193238537050 "] [stack="github.com/pingcap/tidb/store/mockstore/unistore/tikv.(*Server).KvPessimisticLock\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/mockstore/unistore/tikv/server.go:214\ngitpro.ttaallkk.top/pingcap/tidb/store/mockstore/unistore.(*RPCClient).SendRequest\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/mockstore/unistore/rpc.go:152\ngitpro.ttaallkk.top/pingcap/tidb/store/tikv/client.reqCollapse.SendRequest\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/client/client_collapse.go:53\ngitpro.ttaallkk.top/pingcap/tidb/store/tikv.(*RegionRequestSender).sendReqToRegion\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/region_request.go:445\ngitpro.ttaallkk.top/pingcap/tidb/store/tikv.(*RegionRequestSender).SendReqCtx\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/region_request.go:301\ngitpro.ttaallkk.top/pingcap/tidb/store/tikv.(*RegionRequestSender).SendReq\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/region_request.go:187\ngitpro.ttaallkk.top/pingcap/tidb/store/tikv.(*KVStore).SendReq\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/kv.go:294\ngitpro.ttaallkk.top/pingcap/tidb/store/tikv.actionPessimisticLock.handleSingleBatch\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/pessimistic.go:122\ngitpro.ttaallkk.top/pingcap/tidb/store/tikv.(*twoPhaseCommitter).doActionOnBatches\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/2pc.go:660\ngitpro.ttaallkk.top/pingcap/tidb/store/tikv.(*twoPhaseCommitter).doActionOnGroupMutations\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/2pc.go:641\ngitpro.ttaallkk.top/pingcap/tidb/store/tikv.(*twoPhaseCommitter).doActionOnMutations\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/2pc.go:504\ngitpro.ttaallkk.top/pingcap/tidb/store/tikv.(*twoPhaseCommitter).pessimisticLockMutations\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/pessimistic.go:264\ngitpro.ttaallkk.top/pingcap/tidb/store/tikv.(*KVTxn).LockKeys\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/txn.go:568\ngitpro.ttaallkk.top/pingcap/tidb/store/driver/txn.(*tikvTxn).LockKeys\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/driver/txn/txn_driver.go:61\ngitpro.ttaallkk.top/pingcap/tidb/session.(*LazyTxn).LockKeys\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/txn.go:372\ngitpro.ttaallkk.top/pingcap/tidb/executor.doLockKeys\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/executor.go:1024\ngitpro.ttaallkk.top/pingcap/tidb/executor.(*PointGetExecutor).lockKeyIfNeeded\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/point_get.go:325\ngitpro.ttaallkk.top/pingcap/tidb/executor.(*PointGetExecutor).getAndLock\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/point_get.go:303\ngitpro.ttaallkk.top/pingcap/tidb/executor.(*PointGetExecutor).Next\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/point_get.go:262\ngitpro.ttaallkk.top/pingcap/tidb/executor.Next\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/executor.go:284\ngitpro.ttaallkk.top/pingcap/tidb/executor.(*UpdateExec).updateRows\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/update.go:251\ngitpro.ttaallkk.top/pingcap/tidb/executor.(*UpdateExec).Next\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/update.go:219\ngitpro.ttaallkk.top/pingcap/tidb/executor.Next\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/executor.go:284\ngitpro.ttaallkk.top/pingcap/tidb/executor.(*ExecStmt).handleNoDelayExecutor\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/adapter.go:565\ngitpro.ttaallkk.top/pingcap/tidb/executor.(*ExecStmt).handlePessimisticDML\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/adapter.go:584\ngitpro.ttaallkk.top/pingcap/tidb/executor.(*ExecStmt).handleNoDelay\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/adapter.go:444\ngitpro.ttaallkk.top/pingcap/tidb/executor.(*ExecStmt).Exec\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/adapter.go:395\ngitpro.ttaallkk.top/pingcap/tidb/session.runStmt\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1637\ngitpro.ttaallkk.top/pingcap/tidb/session.(*session).ExecuteStmt\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1532\ngitpro.ttaallkk.top/pingcap/tidb/util/testkit.(*TestKit).Exec\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/util/testkit/testkit.go:170\ngitpro.ttaallkk.top/pingcap/tidb/session_test.(*testPessimisticSuite).TestDeadlock\n\t/home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/pessimistic_test.go:201\nreflect.Value.call\n\t/usr/local/go/src/reflect/value.go:476\nreflect.Value.Call\n\t/usr/local/go/src/reflect/value.go:337\ngitpro.ttaallkk.top/pingcap/check.(*suiteRunner).forkTest.func1\n\t/nfs/cache/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:850\ngitpro.ttaallkk.top/pingcap/check.(*suiteRunner).forkCall.func1\n\t/nfs/cache/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:739"]

1. Minimal reproduce step (Required)

run ci on https://ci.pingcap.net/blue/organizations/jenkins/tidb_ghpr_unit_test/detail/tidb_ghpr_unit_test/4120/pipeline

2. What did you expect to see? (Required)

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

master
tidb hash: a80047c

@zhouqiang-cl zhouqiang-cl added the type/bug The issue is confirmed as a bug. label May 31, 2021
@ichn-hu
Copy link
Contributor

ichn-hu commented Jun 1, 2021

[2021-05-31T13:57:29.771Z] ==================
[2021-05-31T13:57:29.771Z] WARNING: DATA RACE
[2021-05-31T13:57:29.771Z] Write at 0x00000837771e by goroutine 83:
[2021-05-31T13:57:29.771Z]   github.com/pingcap/tidb/store/tikv.(*KVTxn).SetVars()
[2021-05-31T13:57:29.771Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/txn.go:156 +0x19e
[2021-05-31T13:57:29.771Z]   github.com/pingcap/tidb/store/driver/txn.(*tikvTxn).SetVars()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/driver/txn/txn_driver.go:196 +0x66
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/session.(*session).InitTxnWithStartTS()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:2681 +0x21d
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/executor.(*ExecStmt).buildExecutor()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/adapter.go:756 +0xe54
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/executor.(*ExecStmt).Exec()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/adapter.go:356 +0x41a
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/session.runStmt()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1637 +0x323
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/session.(*session).ExecuteStmt()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1532 +0xbf0
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/util/testkit.(*TestKit).Exec()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/util/testkit/testkit.go:170 +0x2fc
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/util/testkit.(*TestKit).MustExec()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/util/testkit/testkit.go:216 +0x96
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/session_test.(*testSessionSerialSuite).TestKVVars()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session_test.go:2755 +0x974
[2021-05-31T13:57:29.772Z]   github.com/pingcap/failpoint.parseTerm()
[2021-05-31T13:57:29.772Z]       /nfs/cache/mod/github.com/pingcap/failpoint@v0.0.0-20210316064728-7acb0f0a3dfd/terms.go:148 +0x256
[2021-05-31T13:57:29.772Z]   github.com/pingcap/failpoint.parse()
[2021-05-31T13:57:29.772Z]       /nfs/cache/mod/github.com/pingcap/failpoint@v0.0.0-20210316064728-7acb0f0a3dfd/terms.go:125 +0xb3
[2021-05-31T13:57:29.772Z]   github.com/pingcap/failpoint.newTerms()
[2021-05-31T13:57:29.772Z]       /nfs/cache/mod/github.com/pingcap/failpoint@v0.0.0-20210316064728-7acb0f0a3dfd/terms.go:97 +0x6f
[2021-05-31T13:57:29.772Z]   github.com/pingcap/failpoint.(*Failpoint).Enable()
[2021-05-31T13:57:29.772Z]       /nfs/cache/mod/github.com/pingcap/failpoint@v0.0.0-20210316064728-7acb0f0a3dfd/failpoint.go:53 +0x53
[2021-05-31T13:57:29.772Z]   github.com/pingcap/failpoint.(*Failpoints).Enable()
[2021-05-31T13:57:29.772Z]       /nfs/cache/mod/github.com/pingcap/failpoint@v0.0.0-20210316064728-7acb0f0a3dfd/failpoints.go:104 +0x171
[2021-05-31T13:57:29.772Z]   github.com/pingcap/failpoint.Enable()
[2021-05-31T13:57:29.772Z]       /nfs/cache/mod/github.com/pingcap/failpoint@v0.0.0-20210316064728-7acb0f0a3dfd/failpoints.go:224 +0x8b6
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/session_test.(*testSessionSerialSuite).TestKVVars()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session_test.go:2754 +0x8b7
[2021-05-31T13:57:29.772Z]   runtime.call16()
[2021-05-31T13:57:29.772Z]       /usr/local/go/src/runtime/asm_amd64.s:550 +0x3d
[2021-05-31T13:57:29.772Z]   reflect.Value.Call()
[2021-05-31T13:57:29.772Z]       /usr/local/go/src/reflect/value.go:337 +0xd8
[2021-05-31T13:57:29.772Z]   github.com/pingcap/check.(*suiteRunner).forkTest.func1()
[2021-05-31T13:57:29.772Z]       /nfs/cache/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:850 +0xb3b
[2021-05-31T13:57:29.772Z]   github.com/pingcap/check.(*suiteRunner).forkCall.func1()
[2021-05-31T13:57:29.772Z]       /nfs/cache/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:739 +0x11d
[2021-05-31T13:57:29.772Z] 
[2021-05-31T13:57:29.772Z] Previous write at 0x00000837771e by goroutine 107:
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/store/tikv.(*KVTxn).SetVars()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/txn.go:156 +0x19e
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/store/driver/txn.(*tikvTxn).SetVars()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/driver/txn/txn_driver.go:196 +0x66
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/session.(*session).Txn()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1927 +0x859
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/executor.(*executorBuilder).getSnapshotTS()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/builder.go:1384 +0x2cf
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/executor.buildNoRangeIndexLookUpReader()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/builder.go:3020 +0x3e4
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/executor.(*executorBuilder).buildIndexLookUpReader()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/builder.go:3078 +0x64
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/executor.(*executorBuilder).build()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/builder.go:219 +0x426
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/executor.(*executorBuilder).buildProjection()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/builder.go:1325 +0xd3
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/executor.(*executorBuilder).build()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/builder.go:201 +0x6a6
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/executor.(*ExecStmt).buildExecutor()
[2021-05-31T13:57:29.772Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/adapter.go:776 +0x304
[2021-05-31T13:57:29.772Z]   github.com/pingcap/tidb/executor.(*ExecStmt).Exec()
[2021-05-31T13:57:29.773Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/adapter.go:356 +0x41a
[2021-05-31T13:57:29.773Z]   github.com/pingcap/tidb/session.runStmt()
[2021-05-31T13:57:29.773Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1637 +0x323
[2021-05-31T13:57:29.773Z]   github.com/pingcap/tidb/session.(*session).ExecuteStmt()
[2021-05-31T13:57:29.773Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1532 +0xbf0
[2021-05-31T13:57:29.773Z]   github.com/pingcap/tidb/session.(*session).ExecRestrictedStmt()
[2021-05-31T13:57:29.773Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1457 +0x6ec
[2021-05-31T13:57:29.773Z]   github.com/pingcap/tidb/bindinfo.(*BindHandle).Update()
[2021-05-31T13:57:29.773Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/bindinfo/handle.go:138 +0x2e5
[2021-05-31T13:57:29.773Z]   github.com/pingcap/tidb/domain.(*Domain).globalBindHandleWorkerLoop.func1()
[2021-05-31T13:57:29.773Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/domain/domain.go:992 +0x249
[2021-05-31T13:57:29.773Z] 
[2021-05-31T13:57:29.773Z] Goroutine 83 (running) created at:
[2021-05-31T13:57:29.773Z]   github.com/pingcap/check.(*suiteRunner).forkCall()
[2021-05-31T13:57:29.773Z]       /nfs/cache/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:734 +0x4cc
[2021-05-31T13:57:29.773Z]   github.com/pingcap/check.(*suiteRunner).forkTest()
[2021-05-31T13:57:29.773Z]       /nfs/cache/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:832 +0x1c4
[2021-05-31T13:57:29.773Z]   github.com/pingcap/check.(*suiteRunner).doRun()
[2021-05-31T13:57:29.773Z]       /nfs/cache/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:666 +0x144
[2021-05-31T13:57:29.773Z]   github.com/pingcap/check.(*suiteRunner).run()
[2021-05-31T13:57:29.773Z]       /nfs/cache/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:696 +0x144
[2021-05-31T13:57:29.773Z]   github.com/pingcap/check.Run()
[2021-05-31T13:57:29.773Z]       /nfs/cache/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/run.go:150 +0x5a
[2021-05-31T13:57:29.773Z]   github.com/pingcap/check.RunAll()
[2021-05-31T13:57:29.773Z]       /nfs/cache/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/run.go:136 +0x968
[2021-05-31T13:57:29.773Z]   github.com/pingcap/check.TestingT()
[2021-05-31T13:57:29.773Z]       /nfs/cache/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/run.go:99 +0x756
[2021-05-31T13:57:29.773Z]   github.com/pingcap/tidb/session.TestT()
[2021-05-31T13:57:29.773Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/tidb_test.go:49 +0x196
[2021-05-31T13:57:29.773Z]   testing.tRunner()
[2021-05-31T13:57:29.773Z]       /usr/local/go/src/testing/testing.go:1193 +0x202
[2021-05-31T13:57:29.773Z] 
[2021-05-31T13:57:29.773Z] Goroutine 107 (running) created at:
[2021-05-31T13:57:29.773Z]   github.com/pingcap/tidb/domain.(*Domain).globalBindHandleWorkerLoop()
[2021-05-31T13:57:29.773Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/domain/domain.go:979 +0x6c
[2021-05-31T13:57:29.773Z]   github.com/pingcap/tidb/domain.(*Domain).LoadBindInfoLoop()
[2021-05-31T13:57:29.773Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/domain/domain.go:972 +0x192
[2021-05-31T13:57:29.773Z]   github.com/pingcap/tidb/session.BootstrapSession()
[2021-05-31T13:57:29.773Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:2377 +0x3d9
[2021-05-31T13:57:29.773Z]   github.com/pingcap/tidb/session_test.(*testSessionSuiteBase).SetUpSuite()
[2021-05-31T13:57:29.773Z]       /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session_test.go:214 +0x5a5
[2021-05-31T13:57:29.773Z]   github.com/pingcap/tidb/session_test.(*testSessionSerialSuite).SetUpSuite()
[2021-05-31T13:57:29.773Z]       <autogenerated>:1 +0x4d
[2021-05-31T13:57:29.773Z]   runtime.call16()
[2021-05-31T13:57:29.773Z]       /usr/local/go/src/runtime/asm_amd64.s:550 +0x3d
[2021-05-31T13:57:29.773Z]   reflect.Value.Call()
[2021-05-31T13:57:29.773Z]       /usr/local/go/src/reflect/value.go:337 +0xd8
[2021-05-31T13:57:29.773Z]   github.com/pingcap/check.(*suiteRunner).runFixture.func1()
[2021-05-31T13:57:29.773Z]       /nfs/cache/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:799 +0x1d0
[2021-05-31T13:57:29.773Z]   github.com/pingcap/check.(*suiteRunner).forkCall.func1()
[2021-05-31T13:57:29.773Z]       /nfs/cache/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:739 +0x11d
[2021-05-31T13:57:29.773Z] ==================

@ichn-hu
Copy link
Contributor

ichn-hu commented Jun 1, 2021

github.com/pingcap/tidb/store/mockstore/unistore/tikv.(*Server).KvPessimisticLock
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/mockstore/unistore/tikv/server.go:214
github.com/pingcap/tidb/store/mockstore/unistore.(*RPCClient).SendRequest
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/mockstore/unistore/rpc.go:152
github.com/pingcap/tidb/store/tikv/client.reqCollapse.SendRequest
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/client/client_collapse.go:53
github.com/pingcap/tidb/store/tikv.(*RegionRequestSender).sendReqToRegion
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/region_request.go:445
github.com/pingcap/tidb/store/tikv.(*RegionRequestSender).SendReqCtx
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/region_request.go:301
github.com/pingcap/tidb/store/tikv.(*RegionRequestSender).SendReq
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/region_request.go:187
github.com/pingcap/tidb/store/tikv.(*KVStore).SendReq
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/kv.go:294
github.com/pingcap/tidb/store/tikv.actionPessimisticLock.handleSingleBatch
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/pessimistic.go:122
github.com/pingcap/tidb/store/tikv.(*twoPhaseCommitter).doActionOnBatches
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/2pc.go:660
github.com/pingcap/tidb/store/tikv.(*twoPhaseCommitter).doActionOnGroupMutations
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/2pc.go:641
github.com/pingcap/tidb/store/tikv.(*twoPhaseCommitter).doActionOnMutations
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/2pc.go:504
github.com/pingcap/tidb/store/tikv.(*twoPhaseCommitter).pessimisticLockMutations
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/pessimistic.go:264
github.com/pingcap/tidb/store/tikv.(*KVTxn).LockKeys
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/tikv/txn.go:568
github.com/pingcap/tidb/store/driver/txn.(*tikvTxn).LockKeys
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/store/driver/txn/txn_driver.go:61
github.com/pingcap/tidb/session.(*LazyTxn).LockKeys
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/txn.go:372
github.com/pingcap/tidb/executor.doLockKeys
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/executor.go:1024
github.com/pingcap/tidb/executor.(*PointGetExecutor).lockKeyIfNeeded
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/point_get.go:325
github.com/pingcap/tidb/executor.(*PointGetExecutor).getAndLock
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/point_get.go:303
github.com/pingcap/tidb/executor.(*PointGetExecutor).Next
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/point_get.go:262
github.com/pingcap/tidb/executor.Next
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/executor.go:284
github.com/pingcap/tidb/executor.(*UpdateExec).updateRows
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/update.go:251
github.com/pingcap/tidb/executor.(*UpdateExec).Next
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/update.go:219
github.com/pingcap/tidb/executor.Next
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/executor.go:284
github.com/pingcap/tidb/executor.(*ExecStmt).handleNoDelayExecutor
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/adapter.go:565
github.com/pingcap/tidb/executor.(*ExecStmt).handlePessimisticDML
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/adapter.go:584
github.com/pingcap/tidb/executor.(*ExecStmt).handleNoDelay
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/adapter.go:444
github.com/pingcap/tidb/executor.(*ExecStmt).Exec
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/executor/adapter.go:395
github.com/pingcap/tidb/session.runStmt
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1637
github.com/pingcap/tidb/session.(*session).ExecuteStmt
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/session.go:1532
github.com/pingcap/tidb/util/testkit.(*TestKit).Exec
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/util/testkit/testkit.go:170
github.com/pingcap/tidb/session_test.(*testPessimisticSuite).TestDeadlock
        /home/jenkins/agent/workspace/tidb_ghpr_unit_test/go/src/github.com/pingcap/tidb/session/pessimistic_test.go:201
reflect.Value.call
        /usr/local/go/src/reflect/value.go:476
reflect.Value.Call
        /usr/local/go/src/reflect/value.go:337
github.com/pingcap/check.(*suiteRunner).forkTest.func1
        /nfs/cache/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:850
github.com/pingcap/check.(*suiteRunner).forkCall.func1
        /nfs/cache/mod/github.com/pingcap/check@v0.0.0-20200212061837-5e12011dc712/check.go:739

@zhouqiang-cl
Copy link
Contributor Author

It last too long to check

@github-actions
Copy link

Please check whether the issue should be labeled with 'affects-x.y' or 'backport-x.y.z',
and then remove 'needs-more-info' label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/major sig/transaction SIG:Transaction type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

5 participants