zstan commented on code in PR #11041: URL: https://github.com/apache/ignite/pull/11041#discussion_r1670841969
########## modules/core/src/main/java/org/apache/ignite/internal/managers/deployment/GridDeploymentPerVersionStore.java: ########## @@ -322,13 +322,33 @@ else if (log.isDebugEnabled()) while (true) { List<SharedDeployment> depsToCheck = null; - SharedDeployment dep = null; + SharedDeployment dep; synchronized (mux) { // Check obsolete request. if (isDeadClassLoader(meta)) return null; + Collection<GridDeployment> created = getDeployments(); + + boolean skipSearchDeployment = false; + + // Check already exist deployment. + if (meta.deploymentMode() == SHARED) { + for (GridDeployment dep0 : created) { + // hot redeploy from same node + if (dep0.participants().containsKey(meta.senderNodeId()) || dep0.undeployed()) + continue; + + IgniteBiTuple<Class<?>, Throwable> cls = dep0.deployedClass(meta.className(), meta.alias()); + + if (cls.getKey() != null && cls.getValue() == null) { + addParticipant((SharedDeployment)dep0, meta); + skipSearchDeployment = true; + } Review Comment: because in common - getDeployments() returns the collection an we need to update all participants -- 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. To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org