Closed tiancaiamao closed 2 years ago
For https://github.com/pingcap/tidb/issues/32767
Avoid the errors.Wrap, it will capture the goroutine stack and cause perfromance issue.
Actually, the error is ignored when the failpoint doesn't exist.
Run TiDB CI before and after this simple change:
run all tasks takes 3m52.775268946s run all tasks takes 2m51.273945186s
Tests
Side effects
Related changes
All committers have signed the CLA.
What problem does this PR solve?
For https://github.com/pingcap/tidb/issues/32767
What is changed and how it works?
Avoid the errors.Wrap, it will capture the goroutine stack and cause perfromance issue.
Actually, the error is ignored when the failpoint doesn't exist.
Run TiDB CI before and after this simple change:
Check List
Tests
Side effects
Related changes