Skip to content

Commit

Permalink
fix spark yarn cluster mode bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengJie1053 committed Aug 24, 2023
1 parent 743b417 commit 2fb31f0
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,12 @@ public void dealPid(ResponseEngineConnPid protocol) {
}

engineNode.setIdentifier(protocol.pid());

ServiceInstance oldServiceInstance = engineNode.getServiceInstance();
if (engineNode.getMark().equals(AMConstant.CLUSTER_PROCESS_MARK)) {
ServiceInstance serviceInstance = protocol.serviceInstance();
engineNode.setServiceInstance(serviceInstance);
getEngineNodeManager().updateEngineNode(serviceInstance, engineNode);
nodeLabelService.labelsFromInstanceToNewInstance(
engineNode.getServiceInstance(), serviceInstance);
getEngineNodeManager().updateEngineNode(oldServiceInstance, engineNode);
nodeLabelService.labelsFromInstanceToNewInstance(oldServiceInstance, serviceInstance);
}
defaultEngineNodeManager.updateEngine(engineNode);
}
Expand Down

0 comments on commit 2fb31f0

Please sign in to comment.