Github user kirklund commented on a diff in the pull request:

    https://github.com/apache/geode/pull/429#discussion_r107045761
  
    --- Diff: 
geode-core/src/main/java/org/apache/geode/internal/cache/ClusterConfigurationLoader.java
 ---
    @@ -67,18 +68,16 @@ public static void 
deployJarsReceivedFromClusterConfiguration(Cache cache,
         String[] jarFileNames = response.getJarNames();
         byte[][] jarBytes = response.getJars();
     
    -    final JarDeployer jarDeployer = new JarDeployer(
    -        ((GemFireCacheImpl) 
cache).getDistributedSystem().getConfig().getDeployWorkingDir());
    -
         /******
          * Un-deploy the existing jars, deployed during cache creation, do not 
delete anything
          */
     
         if (jarFileNames != null && jarBytes != null) {
    -      JarClassLoader[] jarClassLoaders = jarDeployer.deploy(jarFileNames, 
jarBytes);
    +      List<DeployedJar> jarClassLoaders =
    +          
ClassPathLoader.getLatest().getJarDeployer().deploy(jarFileNames, jarBytes);
           for (int i = 0; i < jarFileNames.length; i++) {
    -        if (jarClassLoaders[i] != null) {
    -          logger.info("Deployed " + 
(jarClassLoaders[i].getFileCanonicalPath()));
    +        if (jarClassLoaders.get(i) != null) {
    --- End diff --
    
    Is the jarClassLoaders backed live by ClassPathLoader such that another 
thread could be changing the List while this thread is in this for loop?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to