-
Notifications
You must be signed in to change notification settings - Fork 592
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
Tracking: Eliminate usages of RwError
#4077
Comments
I decided to bring this back to milestone because Batch and connector mod seems to be the major blockers now. Please take a look ❤️ cc. @tabVersion @liurenjie1024 |
Why |
Yeah, it always captures the stacktrace. I think we need to eliminate usage of |
Hmm, then we will lose contexts. |
I guess providing contexts doesn't have to be done through backtrace. For errors triggered by users (like |
As Bugen mentioned, we can keep some backtrace for internal errors. But for user-facing errors such as parser error, it doesn't make sense to capture the stacktrace |
@BugenZhao PTAL |
Only the frontend crate remains to be refactored. I'd like to close this issue and let #2366 track that. |
@BugenZhao (Nov 29, 2023): See motivation here #13588 (comment)
Also I suggest avoiding using RwError everywhere. RwError is designed to have 1-1 correspondence with Postgres. However, not all our results will be reported to Postgres shell -- meta error, cli error, dashboard error, stream error, they won't have any interaction with Postgres.
I think the first step is to introduce per-crate error type.
Originally posted by @skyzh in #1367 (comment)
RwError
#3116RwError
#4368RwError
#4168RwError
RwError
#4105RwError
with dedicated error types inStorageTable
#5272RwError
with dedicated error types inStateTable
#5273The text was updated successfully, but these errors were encountered: