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] Chaos injection failed due to inability to retrieve process name #253

Open
ShadowySpirits opened this issue Jan 30, 2024 · 0 comments · May be fixed by #254
Open

[Bug] Chaos injection failed due to inability to retrieve process name #253

ShadowySpirits opened this issue Jan 30, 2024 · 0 comments · May be fixed by #254

Comments

@ShadowySpirits
Copy link

When the process is terminated, L46 will throw an error. This will cause a 500 response that failed injection but it could be a success in the previous loop. It's better to ignore this error and look up the following processes.

processes, err := process.Processes()
if err != nil {
return errors.WithStack(err)
}
notFound := true
for _, p := range processes {
pid := int(p.Pid)
name, err := p.Name()
if err != nil {
return errors.WithStack(err)
}

@ShadowySpirits ShadowySpirits linked a pull request Jan 30, 2024 that will close this issue
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 a pull request may close this issue.

1 participant