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

fix(stress): kill the stress process for abort #569

Merged
merged 2 commits into from
Sep 23, 2022

Conversation

ispeakc0de
Copy link
Member

@ispeakc0de ispeakc0de commented Sep 23, 2022

Signed-off-by: Shubham Chaudhary shubham.chaudhary@harness.io

What this PR does / why we need it:

Issue

For long chaos duration, if we abort the experiment. It doesn't revert the chaos immediately. It waits for the chaos duration to over before reverting chaos

Cause

It kills the parent process as part of revert but stress-ng orphaned child keep running so stress process persist in target application

Workaround

Launch the nsutil process with groupId. All the child processed can be deleted using this groupId

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

Checklist:

  • Fixes #
  • PR messages has document related information
  • Labelled this PR & related issue with breaking-changes tag
  • PR messages has breaking changes related information
  • Labelled this PR & related issue with requires-upgrade tag
  • PR messages has upgrade related information
  • Commit has unit tests
  • Commit has integration tests
  • E2E run Required for the changes

Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>
uditgaurav
uditgaurav previously approved these changes Sep 23, 2022
Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>
@ispeakc0de ispeakc0de merged commit a83f346 into litmuschaos:master Sep 23, 2022
chinmaym07 pushed a commit to chinmaym07/litmus-go that referenced this pull request Sep 24, 2022
* fix(stress): kill the stress process for abort

Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>
Signed-off-by: chinmaym07 <b418020@iiit-bh.ac.in>
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.

3 participants