zstan commented on code in PR #11041:
URL: https://github.com/apache/ignite/pull/11041#discussion_r1671633470
##########
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())
Review Comment:
because the case of this part is to find participant by nodeId and register
if such is not found
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]