This is an automated email from the ASF dual-hosted git repository.

hongze pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git


The following commit(s) were added to refs/heads/main by this push:
     new e0194dcac5 [GLUTEN-8462][CORE] Raise a meaningful error when no 
component is found from classpath (#8468)
e0194dcac5 is described below

commit e0194dcac59fd656856f63030301012020ca77c9
Author: Hongze Zhang <[email protected]>
AuthorDate: Thu Jan 9 11:13:09 2025 +0800

    [GLUTEN-8462][CORE] Raise a meaningful error when no component is found 
from classpath (#8468)
---
 .../src/main/scala/org/apache/gluten/component/package.scala        | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/gluten-core/src/main/scala/org/apache/gluten/component/package.scala 
b/gluten-core/src/main/scala/org/apache/gluten/component/package.scala
index 032a32d041..cf0181c39c 100644
--- a/gluten-core/src/main/scala/org/apache/gluten/component/package.scala
+++ b/gluten-core/src/main/scala/org/apache/gluten/component/package.scala
@@ -37,6 +37,12 @@ package object component extends Logging {
     // Output log so user could view the component loading order.
     // Call #sortedUnsafe than on #sorted to avoid unnecessary recursion.
     val components = Component.sortedUnsafe()
+    require(
+      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")}"
+    )
     logInfo(s"Components registered within order: 
${components.map(_.name()).mkString(", ")}")
   }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to