gaoyang-projects opened a new issue #3493:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/3493


   **Describe the bug**
   worker group manage ui could not display createtime and updatetime
   
   **To Reproduce**
   1. Normal start and login
   2. goto "security> worker group manage"
   
   **Expected behavior**
   createtime and updatetime is null
   
   **Screenshots**
   
![WechatIMG56](https://user-images.githubusercontent.com/6829668/90211359-0528c100-de23-11ea-87e5-a9fc155d72c7.png)
   
   If applicable, add screenshots to help explain your problem.
   
   
   **Which version of Dolphin Scheduler:**
    -[1.3.1-release]
   
   **Additional context**
   1.HeartBeatTask#run, send message to zk for report
   2.zk property value format "cpuUsage, 
memoryUsage,loadAverage,availablePhysicalMemorySize,maxCpuloadAvg,reservedMemory,startTime,updatetime.status,processid"
   3.WorkerGroupService#getWorkerGroups get zk path value and parse
   
   > `  
                       String registeredIpValue = 
zookeeperCachedOperator.get(workerGroupPath + "/" + childrenNodes.get(0));
                       
wg.setCreateTime(DateUtils.stringToDate(registeredIpValue.split(",")[3]));   // 
split twice and error
                       
wg.setUpdateTime(DateUtils.stringToDate(registeredIpValue.split(",")[4]));`// 
split twice and error
   `
   4. update 
   
   > `
                       String[] splitedRegisteredIpValue = 
registeredIpValue.split(",");
                       
wg.setCreateTime(DateUtils.stringToDate(splitedRegisteredIpValue[splitedRegisteredIpValue.length-3]));
                       
wg.setUpdateTime(DateUtils.stringToDate(splitedRegisteredIpValue[splitedRegisteredIpValue.length-4]));
   `


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to