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

JVM attack: combine install and submit into one #85

Merged
merged 6 commits into from
Nov 9, 2021

Conversation

WangXiangUSTC
Copy link
Collaborator

@WangXiangUSTC WangXiangUSTC commented Aug 12, 2021

Signed-off-by: xiang xiang13225080@163.com

combine install and submit into one, to make it easy to create JVM chaos in dashboard

Signed-off-by: xiang <xiang13225080@163.com>
pkg/server/chaosd/jvm.go Outdated Show resolved Hide resolved
Signed-off-by: xiang <xiang13225080@163.com>
Signed-off-by: xiang <xiang13225080@163.com>
pkg/server/chaosd/jvm.go Outdated Show resolved Hide resolved
pkg/server/httpserver/server.go Outdated Show resolved Hide resolved
pkg/server/httpserver/server.go Outdated Show resolved Hide resolved
Signed-off-by: xiang <xiang13225080@163.com>
Signed-off-by: xiang <xiang13225080@163.com>
Signed-off-by: xiang <xiang13225080@163.com>
Copy link
Member

@fewdan fewdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

// TODO: Investigate the cause of these two error
errMsg2 := "Provider sun.tools.attach.LinuxAttachProvider not found"
errMsg3 := "install java.io.IOException: Non-numeric value found"
if !strings.Contains(string(output), errMsg1) && !strings.Contains(string(output), errMsg2) &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since errMsgX are all only used once here , I think giving the literal string is enough.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's convenient to add comments, and avoid lines that are too long

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK.

Copy link
Member

@Andrewmatilde Andrewmatilde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest LGTM

Copy link
Member

@Andrewmatilde Andrewmatilde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@WangXiangUSTC WangXiangUSTC merged commit 9e6d9ee into chaos-mesh:main Nov 9, 2021
@WangXiangUSTC WangXiangUSTC deleted the jvm_refine branch November 9, 2021 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants