Skip to content

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

Open
@ShadowySpirits

Description

@ShadowySpirits

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)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions