zstan commented on a change in pull request #8759:
URL: https://github.com/apache/ignite/pull/8759#discussion_r576064165
##########
File path:
modules/core/src/main/java/org/apache/ignite/spi/deployment/local/LocalDeploymentSpi.java
##########
@@ -111,35 +110,60 @@
}
/** {@inheritDoc} */
- @Nullable @Override public DeploymentResource findResource(String
rsrcName) {
+ @Nullable @Override public DeploymentResource findResource(String
rsrcName, @Nullable ClassLoader clsLdr) {
assert rsrcName != null;
- // Last updated class loader has highest priority in search.
- for (Entry<ClassLoader, ConcurrentMap<String, String>> e :
ldrRsrcs.descendingEntrySet()) {
+ if (clsLdr != null) {
+ ConcurrentMap<String, String> rsrcs = ldrRsrcs.get(clsLdr);
+
+ if (rsrcs == null)
+ return null;
+
+ return findResource0(rsrcs, rsrcName, clsLdr);
+ }
+
+ for (Entry<ClassLoader, ConcurrentMap<String, String>> e :
ldrRsrcs.entrySet()) {
Review comment:
the same as here
https://github.com/apache/ignite/pull/8759#discussion_r572667758
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]