This is an automated email from the ASF dual-hosted git repository.
philo 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 33b76476d9 [CORE] Avoid getting duplicate resource files for component
discovery (#11043)
33b76476d9 is described below
commit 33b76476d98ddba63aeb016b62acb1eeefaad554
Author: PHILO-HE <[email protected]>
AuthorDate: Mon Nov 10 09:14:14 2025 +0800
[CORE] Avoid getting duplicate resource files for component discovery
(#11043)
---
gluten-core/src/main/java/org/apache/gluten/utils/ResourceUtil.java | 2 +-
gluten-core/src/main/scala/org/apache/gluten/component/Discovery.scala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git
a/gluten-core/src/main/java/org/apache/gluten/utils/ResourceUtil.java
b/gluten-core/src/main/java/org/apache/gluten/utils/ResourceUtil.java
index 437ef6e80e..671fcc9aa6 100644
--- a/gluten-core/src/main/java/org/apache/gluten/utils/ResourceUtil.java
+++ b/gluten-core/src/main/java/org/apache/gluten/utils/ResourceUtil.java
@@ -57,7 +57,7 @@ public class ResourceUtil {
final List<String> buffer = new ArrayList<>();
final Enumeration<URL> containerUrls;
try {
- containerUrls =
Thread.currentThread().getContextClassLoader().getResources(container);
+ containerUrls =
ResourceUtil.class.getClassLoader().getResources(container);
} catch (IOException e) {
throw new GlutenException(e);
}
diff --git
a/gluten-core/src/main/scala/org/apache/gluten/component/Discovery.scala
b/gluten-core/src/main/scala/org/apache/gluten/component/Discovery.scala
index ffa2ba9b77..fdc086386f 100644
--- a/gluten-core/src/main/scala/org/apache/gluten/component/Discovery.scala
+++ b/gluten-core/src/main/scala/org/apache/gluten/component/Discovery.scala
@@ -62,7 +62,7 @@ private object Discovery extends Logging {
val out = allFiles.flatMap {
case componentFilePattern(className) =>
if (!deDup.add(className)) {
- logWarning(s"Found duplicated component class $className in then
classpath, ignoring.")
+ logWarning(s"Found duplicated component class $className in the
classpath, ignoring.")
None
} else {
val clazz =
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]