Skip to content

[GLUTEN-8462][CORE] Raise a meaningful error when no component is found from classpath#8468

Merged
zhztheplayer merged 4 commits intoapache:mainfrom
zhztheplayer:wip-error-no-component
Jan 9, 2025
Merged

[GLUTEN-8462][CORE] Raise a meaningful error when no component is found from classpath#8468
zhztheplayer merged 4 commits intoapache:mainfrom
zhztheplayer:wip-error-no-component

Conversation

@zhztheplayer
Copy link
Member

When no component files (with name META-INF/gluten-components/<classname>) found from classpath, raise an error instead of running into UB.

@github-actions github-actions bot added the CORE works for Gluten Core label Jan 8, 2025
@github-actions
Copy link

github-actions bot commented Jan 8, 2025

#8462

@github-actions
Copy link

github-actions bot commented Jan 8, 2025

Run Gluten Clickhouse CI on x86

@github-actions
Copy link

github-actions bot commented Jan 8, 2025

Run Gluten Clickhouse CI on x86

@github-actions
Copy link

github-actions bot commented Jan 8, 2025

Run Gluten Clickhouse CI on x86

components.nonEmpty,
s"No component files found in container directories named with " +
s"'META-INF/gluten-components' from classpath. JVM classpath value " +
s"is: ${System.getProperty("java.class.path")}"
Copy link
Member

Choose a reason for hiding this comment

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

@zhztheplayer, is user configured extraClassPath covered by java.class.path?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, usually it is included. I am investigating on issue #8462 so perhaps we shouldn't rely on java.class.path in future. But at his moment this error message is needed.

@zhztheplayer zhztheplayer merged commit e0194dc into apache:main Jan 9, 2025
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CORE works for Gluten Core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants