-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[fix](jni_connector) fix that be core when jni_connector open fails #37697
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
clang-tidy review says "All clean, LGTM! 👍" |
run buildall |
TPC-H: Total hot run time: 40159 ms
|
TPC-DS: Total hot run time: 175289 ms
|
ClickBench: Total hot run time: 30.79 s
|
clang-tidy review says "All clean, LGTM! 👍" |
run buildall |
TPC-H: Total hot run time: 40266 ms
|
TPC-DS: Total hot run time: 172786 ms
|
ClickBench: Total hot run time: 30.82 s
|
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.
LGTM
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
…pache#37697) Here are two problems: 1. `appendDataTimeNs` will be `NULL` if TrinoConnector open fails before call to `parseRequiredTypes` 2. It does not catch exception in method `get_statistics()` and this exception is not caught until `close()` method. Therefore, it will cause BE core dump in `JniConnector::close()` at `LOG(FATAL)`
…37697) Here are two problems: 1. `appendDataTimeNs` will be `NULL` if TrinoConnector open fails before call to `parseRequiredTypes` 2. It does not catch exception in method `get_statistics()` and this exception is not caught until `close()` method. Therefore, it will cause BE core dump in `JniConnector::close()` at `LOG(FATAL)`
Proposed changes
Here are two problems:
appendDataTimeNs
will beNULL
if TrinoConnector open fails before call toparseRequiredTypes
get_statistics()
and this exception is not caught untilclose()
method. Therefore, it will cause BE core dump inJniConnector::close()
atLOG(FATAL)