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

Under certain circumstances,process of disk burn not quit after timeout #194

Closed
zeuskim opened this issue Sep 18, 2019 · 1 comment
Closed
Labels
chaosblade-exec-os type/bug Something isn't working
Milestone

Comments

@zeuskim
Copy link
Contributor

zeuskim commented Sep 18, 2019

Issue Description

i run ./blade create disk burn --read --timeout 60,and succeed:
{"code":200,"success":true,"result":"0872b9669f970a07"}
but after 60s,the process not quit:
image

image

then i tried to read the code:
image
we find the processid by processname,and kill the proceess id:
image

the processname like:
image
and default value are:var taskName = []string{"if=/dev/zero", "of=/dev/null"}
so i guess the proceessid changed,and read a small file for testing(will finish reading in serval second one time) :
image

The process number that "grep" gets is different every time. The problem seems to be: The command “burn disk --read ”is to read a fixed file. When the file is read once, if you read the same file again from the beginning (for loop), the process number of “dd” will change.
In this case, the obtained process number is expired,so the process can not be killed.

i solved it by kill the process“chaosblade-0.2.0/bin/chaos_burnio --file-system overlay --size 1 --count 1024 --read=true --write=false --nohup=true” instead,
which Just replace
image
with
image for "disk burn --read"

@xcaspar
Copy link
Member

xcaspar commented Sep 20, 2019

@zeuskim Thank for reporting the bug. I will fix it in the next version. Related issue: #195

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

No branches or pull requests

2 participants