Skip to content

[CORE] Remove library unloading API from JniLibLoader as unused#9277

Merged
zhztheplayer merged 3 commits intoapache:mainfrom
zhztheplayer:wip-remove-unload-api
Apr 10, 2025
Merged

[CORE] Remove library unloading API from JniLibLoader as unused#9277
zhztheplayer merged 3 commits intoapache:mainfrom
zhztheplayer:wip-remove-unload-api

Conversation

@zhztheplayer
Copy link
Copy Markdown
Member

@zhztheplayer zhztheplayer commented Apr 9, 2025

The API was originally added for CH backend library unloading. Now the C++ side JNI_OnUnload implmentation in CH backend was removed in #9242. So we don't need this API in Java-side as well ideally.

The invocation code to Java side unload API relies on reflections and some uncertain promises from JVM. Its portability is not verified and maintenance will also be an issue. It's the main reason we do the removal and avoid introducing a similar mechanism in future also.

@github-actions github-actions bot added CORE works for Gluten Core VELOX CLICKHOUSE labels Apr 9, 2025
@zhztheplayer zhztheplayer changed the title [CORE] Remove unload API from JniLibLoader as unused [CORE] Remove library unloading API from JniLibLoader as unused Apr 9, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2025

Run Gluten Clickhouse CI on x86

@apache apache deleted a comment from github-actions bot Apr 9, 2025
@zhztheplayer
Copy link
Copy Markdown
Member Author

cc @baibaichen @philo-he @zzcclp

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2025

Run Gluten Clickhouse CI on x86

@zhztheplayer zhztheplayer marked this pull request as ready for review April 9, 2025 13:56
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2025

Run Gluten Clickhouse CI on x86

Copy link
Copy Markdown
Contributor

@zzcclp zzcclp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhztheplayer zhztheplayer merged commit 30f301a into apache:main Apr 10, 2025
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLICKHOUSE CORE works for Gluten Core VELOX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants