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

TestGetTxnStatus failed in integration_common_test #13397

Closed
wjhuang2016 opened this issue Nov 12, 2019 · 4 comments
Closed

TestGetTxnStatus failed in integration_common_test #13397

wjhuang2016 opened this issue Nov 12, 2019 · 4 comments
Assignees
Labels

Comments

@wjhuang2016
Copy link
Member

wjhuang2016 commented Nov 12, 2019

FAIL: lock_test.go:187: testLockSuite.TestGetTxnStatus

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    If possible, provide a recipe for reproducing the error.
[2019-11-12T07:25:34.407Z] [2019/11/12 15:25:21.113 +08:00] [INFO] [lock_resolver.go:524] ["resolveLock rollback"] [lock="key: []byte{0x74}, primary: []byte{0x74}, txnStartTS: 412494992781082670, ttl: 3, type: Put"]
[2019-11-12T07:25:34.407Z] [2019/11/12 15:25:21.114 +08:00] [INFO] [lock_resolver.go:524] ["resolveLock rollback"] [lock="key: []byte{0x75}, primary: []byte{0x75}, txnStartTS: 412494992781082671, ttl: 3, type: Put"]
[2019-11-12T07:25:34.407Z] [2019/11/12 15:25:21.114 +08:00] [INFO] [lock_resolver.go:524] ["resolveLock rollback"] [lock="key: []byte{0x76}, primary: []byte{0x76}, txnStartTS: 412494992781082672, ttl: 3, type: Put"]
[2019-11-12T07:25:34.407Z] [2019/11/12 15:25:21.115 +08:00] [INFO] [lock_resolver.go:524] ["resolveLock rollback"] [lock="key: []byte{0x77}, primary: []byte{0x77}, txnStartTS: 412494992781082674, ttl: 3, type: Put"]
[2019-11-12T07:25:34.407Z] [2019/11/12 15:25:21.116 +08:00] [INFO] [lock_resolver.go:524] ["resolveLock rollback"] [lock="key: []byte{0x78}, primary: []byte{0x78}, txnStartTS: 412494992781082675, ttl: 3, type: Put"]
[2019-11-12T07:25:34.407Z] [2019/11/12 15:25:21.116 +08:00] [INFO] [lock_resolver.go:524] ["resolveLock rollback"] [lock="key: []byte{0x79}, primary: []byte{0x79}, txnStartTS: 412494992781082676, ttl: 3, type: Put"]
[2019-11-12T07:25:34.407Z] [2019/11/12 15:25:21.117 +08:00] [INFO] [lock_resolver.go:524] ["resolveLock rollback"] [lock="key: []byte{0x7a}, primary: []byte{0x7a}, txnStartTS: 412494992781082677, ttl: 3, type: Put"]
[2019-11-12T07:25:34.407Z] PASS: lock_test.go:172: testLockSuite.TestCleanLock	0.048s
[2019-11-12T07:25:34.407Z] [2019/11/12 15:25:21.120 +08:00] [INFO] [client.go:144] ["[pd] create pd client with endpoints"] [pd-address="[127.0.0.1:2379]"]
[2019-11-12T07:25:34.407Z] [2019/11/12 15:25:21.122 +08:00] [INFO] [client.go:252] ["[pd] switch leader"] [new-leader=http://127.0.0.1:2379] [old-leader=]
[2019-11-12T07:25:34.407Z] [2019/11/12 15:25:21.122 +08:00] [INFO] [client.go:163] ["[pd] init cluster id"] [cluster-id=6758317773105027983]
[2019-11-12T07:25:34.407Z] 
[2019-11-12T07:25:34.407Z] ----------------------------------------------------------------------
[2019-11-12T07:25:34.407Z] FAIL: lock_test.go:187: testLockSuite.TestGetTxnStatus
[2019-11-12T07:25:34.407Z] 
[2019-11-12T07:25:34.407Z] lock_test.go:204:
[2019-11-12T07:25:34.407Z]     c.Assert(status.ttl, Greater, uint64(0))
[2019-11-12T07:25:34.407Z] ... compare_one uint64 = 0x0
[2019-11-12T07:25:34.407Z] ... compare_two uint64 = 0x0
[2019-11-12T07:25:34.407Z] 
[2019-11-12T07:25:34.408Z] [2019/11/12 15:25:21.150 +08:00] [ERROR] [pd.go:129] ["updateTS error"] [error="rpc error: code = Canceled desc = context canceled"] [errorVerbose="rpc error: code = Canceled desc = context canceled\ngit.luolix.top/pingcap/pd/client.(*client).processTSORequests\n\t/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/pkg/mod/github.com/pingcap/pd@v1.1.0-beta.0.20190923032047-5c648dc365e0/client/client.go:444\ngit.luolix.top/pingcap/pd/client.(*client).tsLoop\n\t/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/pkg/mod/github.com/pingcap/pd@v1.1.0-beta.0.20190923032047-5c648dc365e0/client/client.go:393\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1357\ngit.luolix.top/pingcap/pd/client.(*tsoRequest).Wait\n\t/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/pkg/mod/github.com/pingcap/pd@v1.1.0-beta.0.20190923032047-5c648dc365e0/client/client.go:564\ngit.luolix.top/pingcap/pd/client.(*client).GetTS\n\t/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/pkg/mod/github.com/pingcap/pd@v1.1.0-beta.0.20190923032047-5c648dc365e0/client/client.go:582\ngit.luolix.top/pingcap/tidb/store/tikv/oracle/oracles.(*pdOracle).getTimestamp\n\t/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/src/github.com/pingcap/tidb/store/tikv/oracle/oracles/pd.go:103\ngit.luolix.top/pingcap/tidb/store/tikv/oracle/oracles.(*pdOracle).updateTS\n\t/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/src/github.com/pingcap/tidb/store/tikv/oracle/oracles/pd.go:127\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1357\ngit.luolix.top/pingcap/errors.AddStack\n\t/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/pkg/mod/github.com/pingcap/errors@v0.11.4/errors.go:174\ngit.luolix.top/pingcap/errors.Trace\n\t/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/pkg/mod/github.com/pingcap/errors@v0.11.4/juju_adaptor.go:15\ngit.luolix.top/pingcap/tidb/store/tikv/oracle/oracles.(*pdOracle).getTimestamp\n\t/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/src/github.com/pingcap/tidb/store/tikv/oracle/oracles/pd.go:105\ngit.luolix.top/pingcap/tidb/store/tikv/oracle/oracles.(*pdOracle).updateTS\n\t/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/src/github.com/pingcap/tidb/store/tikv/oracle/oracles/pd.go:127\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1357"] [stack="github.com/pingcap/tidb/store/tikv/oracle/oracles.(*pdOracle).updateTS\n\t/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/src/github.com/pingcap/tidb/store/tikv/oracle/oracles/pd.go:129"]
[2019-11-12T07:25:34.408Z] [2019/11/12 15:25:21.151 +08:00] [INFO] [client.go:144] ["[pd] create pd client with endpoints"] [pd-address="[127.0.0.1:2379]"]
[2019-11-12T07:25:34.408Z] [2019/11/12 15:25:21.154 +08:00] [INFO] [client.go:252] ["[pd] switch leader"] [new-leader=http://127.0.0.1:2379] [old-leader=]
[2019-11-12T07:25:34.408Z] [2019/11/12 15:25:21.154 +08:00] [INFO] [client.go:163] ["[pd] init cluster id"] [cluster-id=6758317773105027983]
[2019-11-12T07:25:34.408Z] [2019/11/12 15:25:21.359 +08:00] [INFO] [2pc.go:313] ["[BIG_TXN]"] [con=0] ["table ID"=0] [size=4194312] [keys=2049] [puts=2049] [dels=0] [locks=0] [txnStartTS=412494992807297038]
[2019-11-12T07:25:34.408Z] [2019/11/12 15:25:21.521 +08:00] [INFO] [client_batch.go:298] ["batchRecvLoop re-create streaming fail"] [target=127.0.0.1:40000] [error="context deadline exceeded"]
[2019-11-12T07:25:34.408Z] [2019/11/12 15:25:22.198 +08:00] [INFO] [lock_resolver.go:524] ["resolveLock rollback"] [lock="key: []byte{0x6b, 0x65, 0x79}, primary: []byte{0x6b, 0x65, 0x79}, txnStartTS: 412494992807297034, ttl: 1001, type: Put"]
[2019-11-12T07:25:34.408Z] 

https://internal.pingcap.net/idc-jenkins/blue/rest/organizations/jenkins/pipelines/tidb_ghpr_integration_common_test/runs/7234/nodes/119/steps/308/log/?start=0

@SunRunAway
Copy link
Contributor

@tiancaiamao
Copy link
Contributor

From the stack information, something is wrong with PD:

rpc error: code = Canceled desc = context canceled
github.com/pingcap/pd/client.(*client).processTSORequests
	/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/pkg/mod/github.com/pingcap/pd@v1.1.0-beta.0.20191223090411-ea2b748f6ee2/client/client.go:484
github.com/pingcap/pd/client.(*client).tsLoop
	/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/pkg/mod/github.com/pingcap/pd@v1.1.0-beta.0.20191223090411-ea2b748f6ee2/client/client.go:433
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1357
github.com/pingcap/pd/client.(*tsoRequest).Wait
	/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/pkg/mod/github.com/pingcap/pd@v1.1.0-beta.0.20191223090411-ea2b748f6ee2/client/client.go:601
github.com/pingcap/pd/client.(*client).GetTS
	/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/pkg/mod/github.com/pingcap/pd@v1.1.0-beta.0.20191223090411-ea2b748f6ee2/client/client.go:617
github.com/pingcap/tidb/store/tikv/oracle/oracles.(*pdOracle).getTimestamp
	/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/src/github.com/pingcap/tidb/store/tikv/oracle/oracles/pd.go:103
github.com/pingcap/tidb/store/tikv/oracle/oracles.(*pdOracle).updateTS
	/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/src/github.com/pingcap/tidb/store/tikv/oracle/oracles/pd.go:127
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1357
github.com/pingcap/errors.AddStack
	/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/pkg/mod/github.com/pingcap/errors@v0.11.4/errors.go:174
github.com/pingcap/errors.Trace
	/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/pkg/mod/github.com/pingcap/errors@v0.11.4/juju_adaptor.go:15
github.com/pingcap/tidb/store/tikv/oracle/oracles.(*pdOracle).getTimestamp
	/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/src/github.com/pingcap/tidb/store/tikv/oracle/oracles/pd.go:105
github.com/pingcap/tidb/store/tikv/oracle/oracles.(*pdOracle).updateTS
	/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/src/github.com/pingcap/tidb/store/tikv/oracle/oracles/pd.go:127
runtime.goexit
	/usr/local/go/src/runtime/asm_amd64.s:1357"] [stack="github.com/pingcap/tidb/store/tikv/oracle/oracles.(*pdOracle).updateTS
	/home/jenkins/agent/workspace/tidb_ghpr_integration_common_test/go/src/github.com/pingcap/tidb/store/tikv/oracle/oracles/pd.go:129"

@tiancaiamao
Copy link
Contributor

This issue is old and maybe the PD or environment problem has gone, so I'll close it.

@ti-srebot
Copy link
Contributor

Please edit this comment or add a new comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

6. Fixed versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants