Skip to content

Commit

Permalink
[GLUTEN-8462][CORE] Raise a meaningful error when no component is fou…
Browse files Browse the repository at this point in the history
…nd from classpath (#8468)
  • Loading branch information
zhztheplayer authored Jan 9, 2025
1 parent f1d664b commit e0194dc
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(", ")}")
}
}

0 comments on commit e0194dc

Please sign in to comment.