pingcap / tipocket

A toolkit for testing TiDB
https://github.com/pingcap/tipocket
Apache License 2.0
140 stars 71 forks source link

ignore error:context canceled because of network delay #441

Closed vivid392845427 closed 2 years ago

vivid392845427 commented 2 years ago

What problem does this PR solve?

test case failed because of getTS timeout:

[2021/12/04 04:23:17.849 +00:00] [ERROR] [client.go:259] ["[pd] getTS error"] [error="rpc error: code = Canceled desc = context canceled"] [errorVerbose="rpc error: code = Canceled desc = context canceled\ngithub.com/pingcap/pd/v4/client.(*client).processTSORequests\n\t/go/pkg/mod/github.com/pingcap/pd/v4@v4.0.0-beta.1.0.20200305072537-61d9f9cc35d3/client/client.go:295\ngithub.com/pingcap/pd/v4/client.(*client).tsLoop\n\t/go/pkg/mod/github.com/pingcap/pd/v4@v4.0.0-beta.1.0.20200305072537-61d9f9cc35d3/client/client.go:244\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371"] [stack="github.com/pingcap/log.Error\n\t/go/pkg/mod/github.com/pingcap/log@v0.0.0-20200511115504-543df19646ad/global.go:42\ngithub.com/pingcap/pd/v4/client.(*client).tsLoop\n\t/go/pkg/mod/github.com/pingcap/pd/v4@v4.0.0-beta.1.0.20200305072537-61d9f9cc35d3/client/client.go:259"]
[2021/12/04 04:23:23.424 +00:00] [WARN] [pd.go:109] ["get timestamp too slow"] ["cost time"=470.040457ms]
2021/12/04 04:23:28 resolve_lock.go:196: [info] test end 
2021/12/04 04:23:28 control.go:285: [fatal] run client error, rpc error: code = Canceled desc = context canceled

http://172.16.4.180:31714/archived-workflows/test-store/b681e0bc-a198-4982-ab89-95da656954fe?nodeId=tipocket-green-gc-off-v52-1638574200

What is changed and how does it work?

ignore error: context canceled

Check List

Tests

Code changes

Side effects

Related changes

Does this PR introduce a user-facing change?:

NONE