Using Failpoint for Fault Injection in Go

Using Failpoint for Fault Injection in Go

Recently, while looking at the TiDB source code, I found that it used failpoint for fault injection, which I found very interesting. It involves code generation and parsing the code AST tree for replacement to implement fault injection. I will also try to analyze it and learn how to parse the AST tree to generate … Read more