Skip to content

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

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

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

Conversation

@zhztheplayer

@zhztheplayer zhztheplayer commented Apr 9, 2025

Copy link
Copy Markdown
Member

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 Apr 9, 2025
@github-actions

github-actions Bot commented Apr 9, 2025

Copy link
Copy Markdown

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
@github-actions

github-actions Bot commented Apr 9, 2025

Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

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

github-actions Bot commented Apr 9, 2025

Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

@zzcclp zzcclp left a comment

Copy link
Copy Markdown
Contributor

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
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

2 participants