Implement remaining gofailpoints in linearizability tests #14726
Labels
area/testing
help wanted
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
type/feature
What would you like to be added?
This is followup to #14687 that introduced triggering random failpoint.
Failpoints are injected by sending http request to modified etcd server that will panic on when it reaches specific part of code.
Problem is that some failpoints will not be naturally triggered and require additional action to server to reach the code. For example
defragBeforeCopy
anddefragBeforeRename
require starting a Defrag.There are still failpoints that require implementing their triggers. Goal of this issue is to implement triggers for failpoints and adding them to
RandomFailpoint
which is used by automated testing. Code: https://github.com/etcd-io/etcd/blob/main/tests/linearizability/failpoints.go#L33-L53Failpoints to be implemented:
etcdserver/raftBeforeLeaderSend
(@serathius, Linearizability raft before leader send #14752)etcdserver/raftBeforeApplySnap
etcdserver/raftAfterApplySnap
etcdserver/raftAfterWALRelease
etcdserver/raftBeforeFollowerSend
etcdserver/raftBeforeSaveSnap
etcdserver/raftAfterSaveSnap
Why is this needed?
Increases the coverage of linearizability tests.
The text was updated successfully, but these errors were encountered: