retime123 commented on code in PR #10206:
URL: https://github.com/apache/dolphinscheduler/pull/10206#discussion_r880361647
##########
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/utils/HeartBeat.java:
##########
@@ -245,18 +245,18 @@ public static HeartBeat decodeHeartBeat(String
heartBeatInfo) {
HeartBeat heartBeat = new HeartBeat();
heartBeat.cpuUsage = Double.parseDouble(parts[0]);
heartBeat.memoryUsage = Double.parseDouble(parts[1]);
- heartBeat.diskAvailable = Double.parseDouble(parts[2]);
- heartBeat.loadAverage = Double.parseDouble(parts[3]);
- heartBeat.availablePhysicalMemorySize = Double.parseDouble(parts[4]);
- heartBeat.maxCpuloadAvg = Double.parseDouble(parts[5]);
- heartBeat.reservedMemory = Double.parseDouble(parts[6]);
- heartBeat.startupTime = Long.parseLong(parts[7]);
- heartBeat.reportTime = Long.parseLong(parts[8]);
- heartBeat.serverStatus = Integer.parseInt(parts[9]);
- heartBeat.processId = Integer.parseInt(parts[10]);
- heartBeat.workerHostWeight = Integer.parseInt(parts[11]);
- heartBeat.workerExecThreadCount = Integer.parseInt(parts[12]);
- heartBeat.workerWaitingTaskCount = Integer.parseInt(parts[13]);
+ heartBeat.loadAverage = Double.parseDouble(parts[2]);
+ heartBeat.availablePhysicalMemorySize = Double.parseDouble(parts[3]);
+ heartBeat.maxCpuloadAvg = Double.parseDouble(parts[4]);
+ heartBeat.reservedMemory = Double.parseDouble(parts[5]);
+ heartBeat.startupTime = Long.parseLong(parts[6]);
+ heartBeat.reportTime = Long.parseLong(parts[7]);
+ heartBeat.serverStatus = Integer.parseInt(parts[8]);
+ heartBeat.processId = Integer.parseInt(parts[9]);
+ heartBeat.workerHostWeight = Integer.parseInt(parts[10]);
+ heartBeat.workerExecThreadCount = Integer.parseInt(parts[11]);
+ heartBeat.workerWaitingTaskCount = Integer.parseInt(parts[12]);
+ heartBeat.diskAvailable = Double.parseDouble(parts[13]);
Review Comment:
Yes. I didn't think there was a quote anywhere else.
Switch to version 2.0.6 if you can
--
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]