Skip to content

Commit

Permalink
Merge pull request #2794 from jsonwan/github_perf/agentStatus
Browse files Browse the repository at this point in the history
perf: Agent状态查询兼容CMDB存在但GSE不存在的AgentID #2793
  • Loading branch information
wangyu096 authored Mar 5, 2024
2 parents 41a8685 + 708e95d commit d71a9be
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,14 @@ private List<EsbAgentInfoV3DTO> buildEsbAgentInfoList(List<AgentState> agentStat
for (Long hostId : hostIdList) {
String agentId = hostIdAgentIdMap.get(hostId);
if (StringUtils.isBlank(agentId)) {
log.info("Cannot find agentId by hostId={}", hostId);
continue;
}
AgentState agentState = agentStateMap.get(agentId);
if (agentState == null) {
log.warn("Cannot find agentState from gse by hostId={}, agentId={}", hostId, agentId);
continue;
}
EsbAgentInfoV3DTO agentInfoV3DTO = new EsbAgentInfoV3DTO();
agentInfoV3DTO.setHostId(hostId);
agentInfoV3DTO.setStatus(getEsbAgentStatus(agentState));
Expand Down

0 comments on commit d71a9be

Please sign in to comment.