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 chaos map (#853) #855

Merged
merged 5 commits into from
Aug 26, 2020

Conversation

ti-srebot
Copy link
Contributor

cherry-pick #853 to release-0.9


What problem does this PR solve?

A possible solution to #847

What is changed and how does it work?

Fix two bugs:

  1. Instances map is not protected with a lock 😠

  2. Check instances before applying chaos. This will fix extra stress-ng processes due to fail and retry.

The logic about retrying in chaos-mesh is really chaos 😿 . We should improve it in near-future #851 .

And, sorry for not finding these bugs when I was reviewing. I'm still not adapted with dealing these problems without the help of compiler or other tools...

Checklist

Tests

  • Manual test

Signed-off-by: Yang Keao <keao.yang@yahoo.com>
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
@ti-srebot
Copy link
Contributor Author

/run-all-tests

Copy link
Member

@YangKeao YangKeao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@YangKeao
Copy link
Member

LGTM

Oh! Sorry. I have signed an "Approve" for my PR 😿

@cwen0 cwen0 merged commit 862ead5 into chaos-mesh:release-0.9 Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants