Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug][api] worker group manage ui could not display createtime and updatetime #3493

Closed
gaoyang-projects opened this issue Aug 14, 2020 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@gaoyang-projects
Copy link

gaoyang-projects commented Aug 14, 2020

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

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"
HeartBeatTask#run

StringBuilder builder = new StringBuilder(100); builder.append(OSUtils.cpuUsage()).append(COMMA); builder.append(OSUtils.memoryUsage()).append(COMMA); builder.append(OSUtils.loadAverage()).append(COMMA); builder.append(OSUtils.availablePhysicalMemorySize()).append(Constants.COMMA); builder.append(maxCpuloadAvg).append(Constants.COMMA); builder.append(reservedMemory).append(Constants.COMMA); builder.append(startTime).append(Constants.COMMA); // index 6 builder.append(DateUtils.dateToString(new Date())).append(Constants.COMMA); //index 7 builder.append(status).append(COMMA); //save process id builder.append(OSUtils.getProcessID());

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
`

  1. update

String[] splitedRegisteredIpValue = registeredIpValue.split(","); wg.setCreateTime(DateUtils.stringToDate(splitedRegisteredIpValue[splitedRegisteredIpValue.length-3])); wg.setUpdateTime(DateUtils.stringToDate(splitedRegisteredIpValue[splitedRegisteredIpValue.length-4]));

@gaoyang-projects gaoyang-projects added the bug Something isn't working label Aug 14, 2020
@yangyichao-mango
Copy link
Contributor

I will try to reproduce this bug later.

@xingchun-chen
Copy link
Contributor

the issue is the same as #3258

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants