-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-11093] [Core] ChildFirstURLClassLoader#getResources should return all found resources, not just those in the child classloader #9106
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
Conversation
…FirstURLClassLoader#getResources()
|
ok to test |
|
Test build #43694 has finished for PR 9106 at commit
|
|
retest this please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get this, and it makes sense, but in the case you describe, the child classloader had no resource under this name. It seems like it would have already returned the parent's copy. Is this really the nature of the problem then or do I misunderstand?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my situation, the child classloader did have resources under this name. With the Typesafe config library, it is typical (and suggested) that libraries package their own default configurations in a 'reference.conf' file at the root of their jar, and that applications do the same. All of the found configuration files are merged together. So in my case, the application assembly (in the child classloader) has it's own 'reference.conf' resource, which (due to this issue) is preventing akka's 'reference.conf' resource (in the parent classloader) from being seen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get it. This makes sense, since the general contract is to return all visible resources under the name.
|
Test build #1897 has finished for PR 9106 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: these imports should come before org.apache.spark. Also, nuke one of the empty lines before the class declaration.
|
LGTM, aside from minor style nit. |
|
Fixed |
|
2nd time on this PR for test failure due to (seemingly) network issues |
|
retest this please |
1 similar comment
|
retest this please |
|
Test build #43728 has finished for PR 9106 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, missed this before, but tests should use ===. Other than that, patch looks good.
|
retest this please |
|
Test build #43752 has finished for PR 9106 at commit
|
|
Test build #43754 has finished for PR 9106 at commit
|
|
Merging to master |
|
Closed but not merged? |
No description provided.