yozaner1324 commented on a change in pull request #5989:
URL: https://github.com/apache/geode/pull/5989#discussion_r581358382



##########
File path: 
geode-core/src/main/java/org/apache/geode/internal/cache/ClusterConfigurationLoader.java
##########
@@ -94,26 +92,16 @@ public void 
deployJarsReceivedFromClusterConfiguration(ConfigurationResponse res
             .flatMap(Set::stream)
             .collect(Collectors.toList());
 
-    if (jarFileNames != null && !jarFileNames.isEmpty()) {
+    if (!jarFileNames.isEmpty()) {
       logger.info("Got response with jars: {}", 
jarFileNames.stream().collect(joining(",")));
-      JarDeployer jarDeployer = ClassPathLoader.getLatest().getJarDeployer();
-      jarDeployer.suspendAll();
-      try {
-        Set<File> stagedJarFiles =
-            getJarsFromLocator(response.getMember(), response.getJarNames());
-
-        for (File stagedJarFile : stagedJarFiles) {
-          logger.info("Removing old versions of {} in cluster configuration.",

Review comment:
       Put the logging back

##########
File path: 
geode-core/src/integrationTest/java/org/apache/geode/internal/ClassPathLoaderDeployTest.java
##########
@@ -129,15 +133,17 @@ public void deployNewVersionOfFunctionOverOldVersion() 
throws Exception {
     GemFireCache gemFireCache = server.getCache();
     DistributedSystem distributedSystem = gemFireCache.getDistributedSystem();
 
-    ClassPathLoader.getLatest().getJarDeployer().deploy(jarVersion1);
+    JarDeploymentServiceFactory.getJarDeploymentServiceInstance()
+        .deploy(createDeploymentFromJar(jarVersion1));
 
     assertThatClassCanBeLoaded("jddunit.function.MyFunction");
     Execution execution = 
FunctionService.onMember(distributedSystem.getDistributedMember());
 
     List<String> result = (List<String>) 
execution.execute("MyFunction").getResult();
     assertThat(result.get(0)).isEqualTo("Version1");
 
-    ClassPathLoader.getLatest().getJarDeployer().deploy(jarVersion2);
+    JarDeploymentServiceFactory.getJarDeploymentServiceInstance()

Review comment:
       Moved to org.apache.geode.internal.classloader




----------------------------------------------------------------
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]


Reply via email to