[Bug] linkis-application-manager's RMUtils class has a logic bug
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 86/100
Research direction
Start in linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/java/org/apache/linkis/manager/rm/utils/RMUtils.java around line 130 and read RMUtils.toUserResourceVo. Verify the resource fields it returns against the issue’s expected maximum and usage values, then run the relevant application-manager tests. Done means maxResource reports the maximum resource correctly without breaking the usage information.
Written by the indexing model from the issue text.
Description
Search before asking
- I searched the issues and found no similar issues.
Linkis Component
linkis-computation-governance
Steps to reproduce
1、开发一个linkis引擎资源监控接口
2、底层使用了linkis-application-manager模块的RMUtils类的toUserResourceVo方法获取资源信息
3、返回的资源信息中maxResource节点信息错误
Expected behavior
RMUtils.toUserResourceVo方法能够正确返回资源的最大值、使用量
Your environment
- Linkis version used: release-1.4.0
Anything else
linkis-computation-governance/linkis-manager/linkis-application-manager/src/main/java/org/apache/linkis/manager/rm/utils/RMUtils.java类的130行错误的将minResource 设置到了userResourceVo的maxResource 属性中
Resource minResource = userResource.getMinResource();
if (minResource != null) {
userResourceVo.setMaxResource(
ResourceUtils.parse(
ResourceUtils.toJSONString(minResource),
new TypeReference<HashMap<String, Object>>() {}));
}
Are you willing to submit a PR?
- Yes I am willing to submit a PR!
- Dominant language
- Java
- Stars
- 3.4k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/linkis
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
Difficulty 4/5 3-5 days Newbie friendliness 28/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100