Skip to content

Commit

Permalink
[INLONG-10751][Agent] Report Agent process status for backend problem…
Browse files Browse the repository at this point in the history
… analysis
  • Loading branch information
justinwwhuang committed Aug 6, 2024
1 parent cf2d4ce commit 04bcfa6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class AgentStatusManager {
final long GB = 1024 * 1024 * 1024;
private OperatingSystemMXBean osMxBean;
private ThreadMXBean threadBean;
private long INVALID_CPU = -1;
private final long INVALID_CPU = -1;
private RuntimeMXBean runtimeMXBean = ManagementFactory.getRuntimeMXBean();
private ThreadMXBean threadMXBean = ManagementFactory.getThreadMXBean();
private AgentManager agentManager;
Expand Down Expand Up @@ -117,7 +117,9 @@ public void sendStatusMsg(List<String> fields) {
if (sender == null) {
LOGGER.error("sender is null");
createMessageSender();
return;
if (sender == null) {
return;
}
}
SendResult ret = sender.sendMessage(
StringUtils.join(fields, ",").getBytes(StandardCharsets.UTF_8),
Expand Down

0 comments on commit 04bcfa6

Please sign in to comment.