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

tests: context manager to add random failures #4441

Closed
wants to merge 2 commits into from

Conversation

abhijat
Copy link
Contributor

@abhijat abhijat commented Apr 26, 2022

Cover letter

Adds random action injector utilities, aimed to be used for e2e tests. The failures could be process failures, node decommission, leadership transfer etc, controlled by a context manager.

The action injector runs on a thread and periodically introduces changes on randomly selected nodes in the cluster.

Release notes

  • none

Uses FailureInjector and the admin utility to create a
context manager which can be used to introduce random
node failures and other operations including:

1. Process kills
2. Node decommissions
3. Leadership transfer

The context manager introduced here starts a thread on
entry, which sleeps for a random interval and then applies
an operation to the cluster. The thread continues this
until the context exits. Nodes affected can be limited by
passing a configuration to the context manager, along with
time limits.
@abhijat abhijat closed this Apr 26, 2022
@abhijat
Copy link
Contributor Author

abhijat commented Apr 26, 2022

duplicate of #4404

@abhijat abhijat deleted the random-action-injector branch April 26, 2022 11:56
This pull request was closed.
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.

1 participant