-
Notifications
You must be signed in to change notification settings - Fork 411
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
Provide assertion facilities on both release and debug mode #4352
Comments
This article introduces an implementation of an assertion macro. |
What about just output to the
|
I remeber that when TiDB panic/out-of-memory, it also use stderr for the panic log (I am not sure whether this behavior is limited by the Golang or not) |
@JaySon-Huang
Consider different envs (e.g. deployed by |
Looks like RUNTIME_CHECK and RUNTIME_ASSERT is not used. Maybe we should migrate current |
Enhancement
For some logic errors just throw is not safe: the process state might be already wrong.
assert
can be only used on debug mode. We might need a new way to assert some conditions on both release and debug mode.It's output could be redirected to fatal.log.
The text was updated successfully, but these errors were encountered: