I opened a couple PRs.
This PR fixes a couple issues with the compaction stuff that I merged earlier this week:
https://github.com/slatedb/slatedb/pull/79
The second PR (
https://github.com/slatedb/slatedb/pull/80) adds a copy of TikV's failpoints implementation to our repo. Failpoints looks like a nice way to instrument our code so that we can test error paths without requiring the use of full-blown mocks. I think we should still add mocks to do more targeted unit testing at some point, but failpoints are nice because they let you test failure paths end-to-end, but the injection code can be compiled out of release binaries. The main problem with failpoints, and why I didn't just use it by adding it as a dependency, is that it requires the tests to be run serially because it uses a global static registry of faults. To lift this restriction, I've added a copy of failpoints to our repo, and modified it to use a registry that can be scoped to an individual test case. This PR still has a lot of clippy problems. Since the approach taken here is a bit awkward (copying over a bunch of code) - I'd like to get feedback on the basic approach first and then I can go back and fix the lint problems.