-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
planner: care to use errors.new and errors.errorf as your warnings and notes #49291
Comments
can you give some examples about which places should not use this so others can help you improve them? and can you also show an example of how to use a stack-less erros? |
we did find a performance problem from internal incall concluded by a lark document in planner component, you can search the keyword by stack-less error is called like |
…(get rid of unnecessary stack info) (pingcap#49390) close pingcap#49291
/found customer |
Enhancement
github/pingcap/errors.git has their own encapsulation of errors.new and errors.errorf, in which their will fetch stack trace of currently places. If your generation of this errors is used like warning and note, inside which the stack trace is never necessary, so try to avoid usage of this or use another stack-less errors
The text was updated successfully, but these errors were encountered: