-
Notifications
You must be signed in to change notification settings - Fork 3.7k
branch-3.0:[opt](jdbc catalog) Change jdbc Driver loading to Java code #47538
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
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
9b7686b to
54f4d02
Compare
…e#46912) Related PR: apache#45806 Problem Summary: In the previous BE processing of JDBC Driver, the Driver jar will be downloaded to the local cache directory first, and the cached jar package will be provided to the JVM for loading. This will cause two problems 1. The jar package in the cache may fail to load due to duplication 2. Frequent repeated loading of the driver by the JVM will cause Compressed class space OOM In order to fix these two problems, this PR has the following changes 1. Remove the logic of BE downloading the Driver Jar to the local cache directory, and directly hand over the original path to Java's Classloader for processing 2. Treat the jar packages with the same name in the same path as one and cache them in the map to avoid repeated loading and cause Compressed class space OOM
54f4d02 to
aab07ab
Compare
|
run buildall |
|
TeamCity cloud ut coverage result: |
TPC-H: Total hot run time: 40877 ms |
TPC-DS: Total hot run time: 197957 ms |
ClickBench: Total hot run time: 33.76 s |
dataroaring
left a comment
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
cherry-pick: #46912