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

How to inject faults to a program at running time with failpoint #69

Closed
yuxiaoba opened this issue Dec 12, 2021 · 2 comments
Closed

How to inject faults to a program at running time with failpoint #69

yuxiaoba opened this issue Dec 12, 2021 · 2 comments
Labels
question Further information is requested

Comments

@yuxiaoba
Copy link

yuxiaoba commented Dec 12, 2021

Question

The REDAME file teaches me how to use failpoint when staring a program.

However, it does not tell about injecting faults to a program at running time.

For example,

First I start a go program :

./test

After 5 mins, I set the ENV GO_FAILPOINTS="main/testPanic=return(true)"

The fault cannot be injected to the program.

How can I inject faults to a program after running the progarm?

@yuxiaoba yuxiaoba added the question Further information is requested label Dec 12, 2021
@yuxiaoba yuxiaoba changed the title How to inject fault to a program at running time with failpoint How to inject faults to a program at running time with failpoint Dec 12, 2021
@soorajchirag
Copy link

@yuxiaoba: Did you figure this out?

@yuxiaoba
Copy link
Author

yuxiaoba commented Feb 1, 2022

I find that I can invoke faults by http rather than environment variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants