Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public static List<String> getResources(final String container, final Pattern pa
final List<String> buffer = new ArrayList<>();
final Enumeration<URL> containerUrls;
try {
containerUrls = Thread.currentThread().getContextClassLoader().getResources(container);
containerUrls = ResourceUtil.class.getClassLoader().getResources(container);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

The change itself looks reasonable, and I didn't realize context class loader could result in duplicated resources. Will find some time to debug on my end.

} catch (IOException e) {
throw new GlutenException(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down