Skip to content

Commit

Permalink
update download
Browse files Browse the repository at this point in the history
Signed-off-by: v_wbxiongli <740332065@qq.com>
  • Loading branch information
Xiong-Li-github committed Dec 18, 2023
1 parent f7d0724 commit 3e13151
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,7 @@ public PrepareJobDownloadResponse prepareJobDownload(Context context, PrepareJob
for (SessionRanksTemp rank : sessionRanks) {
sessionRankList.add(Arrays.asList(rank.getServerNodeId(),rank.getContainerId(),rank.getGlobalRank(),rank.getLocalRank(),rank.getIndex()));
}

contentMap.put(String.join(":",serverNodeInDb.getHost(),serverNodeInDb.getPort().toString()), sessionRankList);
contentMap.put(serverNodeInDb.getServerNodeId().toString(), sessionRankList);
ErProcessor erProcessor = new ErProcessor();
erProcessor.setSessionId(sessionId);
erProcessor.setServerNodeId(serverNodeId);
Expand Down Expand Up @@ -603,7 +602,7 @@ public PrepareJobDownloadResponse prepareJobDownload(Context context, PrepareJob

newErSessionMeta.getProcessors().forEach(p -> {
if (contentMap.containsKey(p.getServerNodeId())) {
contentMap.put(p.getTransferEndpoint().toString(), p.getServerNodeId());
contentMap.put(p.getTransferEndpoint().toString(), contentMap.get(p.getServerNodeId()));
contentMap.remove(p.getServerNodeId());
} else {
log.info("download cannot found node {}", p.getServerNodeId());
Expand Down

0 comments on commit 3e13151

Please sign in to comment.