-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
row: fix crash during tracing given un-decodable datum #55783
row: fix crash during tracing given un-decodable datum #55783
Conversation
Previously, if tracing was enabled on a query that read bytes that weren't decodable into datum, the database would crash. Release note (bug fix): fix rare crash during tracing when reading un-decodable data.
@rytaft I ran into this crash when experimenting with some of the inverted joins, which seems a little suspicious but maybe expected. Repro instructions:
After this patch, the trace looks like the following. Does this make sense to you?
|
Hey Jordan -- yea, that looks like what I would expect. The inverted joiner has to fetch the four keys in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder how we would behave if cfetcher
is used: maybe there won't be an issue because we are doing a poor job of collecting traces in the vectorized engine, or maybe it'll be fine.
By the way, which sha is this on? I tried to answer my question myself, but I'm getting ERROR: index "a_a_idx" is inverted and cannot be used for this query
.
Reviewed 1 of 1 files at r1.
Reviewable status: complete! 0 of 0 LGTMs obtained
I assume he's testing with #55679 |
Yes, exactly @rytaft. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI if we have a vectorized flow, we're simply catching the null pointer exception, so there wouldn't be a crash.
Reviewable status: complete! 1 of 0 LGTMs obtained
bors r+ |
Build succeeded: |
Previously, if tracing was enabled on a query that read bytes that
weren't decodable into datum, the database would crash.
Release note (bug fix): fix rare crash during tracing when reading
un-decodable data.