You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why is the result of the experiment creation command ignored when model.ActionProcessHang = true in chaosblade/exec/os/executor.go#Exec? This leads to errors in related experiments (such as CPU, memory, disk load injection, file mutation experiments, etc.) not being returned to the user promptly, which makes the parameter validation before the actual execution of the experiments meaningless.
The error is hidden in the log, and the outside world only ever gets 200, ok
Describe what you expected to happen
We should not treat model.ActionProcessHang differently. Ignoring the result of the experiment creation command when model.ActionProcessHang is true can lead to issues where errors are not properly reported, affecting the reliability and usability of the experiments.
How to reproduce it (as minimally and precisely as possible)
The text was updated successfully, but these errors were encountered:
spencercjh
changed the title
Why ignore chaos_os response for ActionProcessHang exp creating
Why ignore chaos_os's response for ActionProcessHang exp creating
Oct 21, 2024
Issue Description
Type: bug report
Describe what happened (or what feature you want)
Why is the result of the experiment creation command ignored when
model.ActionProcessHang = true
inchaosblade/exec/os/executor.go#Exec
? This leads to errors in related experiments (such as CPU, memory, disk load injection, file mutation experiments, etc.) not being returned to the user promptly, which makes the parameter validation before the actual execution of the experiments meaningless.code:
https://github.com/chaosblade-io/chaosblade/blob/master/exec/os/executor.go#L71-L77
Here is an example:
The error is hidden in the log, and the outside world only ever gets 200, ok
Describe what you expected to happen
We should not treat
model.ActionProcessHang
differently. Ignoring the result of the experiment creation command whenmodel.ActionProcessHang
is true can lead to issues where errors are not properly reported, affecting the reliability and usability of the experiments.How to reproduce it (as minimally and precisely as possible)
blade create file append --filepath=/home/logs/not-exist.txt
blade create disk burn --path /not-exist --read --size 10 --timeout 300 --write
The text was updated successfully, but these errors were encountered: