Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the issue of ExtraPlugins loading multiple times #12077

Merged
merged 3 commits into from
Feb 8, 2025

Conversation

sperlingxx
Copy link
Collaborator

Fixes #12076

The PR is about to fix the multiple loading problem which is due to the duplicated URL paths for single extra plugin.

@sperlingxx sperlingxx requested a review from res-life February 7, 2025 01:56
@@ -353,7 +353,7 @@ object RapidsPluginUtils extends Logging {
val resourceName = "spark-rapids-extra-plugins"
val classLoader = RapidsPluginUtils.getClass.getClassLoader
val resourceUrls = classLoader.getResources(resourceName)
val resourceUrlArray = resourceUrls.asScala.toArray
val resourceUrlArray = resourceUrls.asScala.toArray.distinct
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please add a warning listing duplicates.

This looks like a deployment error to me when there are multiple identical entries on the classpath that the user might want to fix.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I added the warning clause.

@sperlingxx
Copy link
Collaborator Author

build

@sperlingxx sperlingxx self-assigned this Feb 7, 2025
@sperlingxx sperlingxx changed the title Fixed the issue of ExtraPlugins loading multiple times Fix the issue of ExtraPlugins loading multiple times Feb 7, 2025
@gerashegalov gerashegalov merged commit 0e7096f into NVIDIA:branch-25.02 Feb 8, 2025
51 checks passed
@sperlingxx sperlingxx deleted the dedup_extra_plugin branch February 10, 2025 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] ExtraPlugins might be loaded duplicated
3 participants