File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,11 @@ test-robustness-issue20573: /tmp/etcd-v3.6.4-failpoints/bin
80
80
GO_TEST_FLAGS=' -v -run=TestRobustnessRegression/issue20573 -count 200 -failfast --bin-dir=/tmp/etcd-v3.6.4-failpoints/bin' $(TOPLEVEL_MAKE ) test-robustness && \
81
81
echo " Failed to reproduce" || echo " Successful reproduction"
82
82
83
+ .PHONY : test-robustness-issue20221
84
+ test-robustness-issue20221 : /tmp/etcd-866bc0717c0b56579514c7363f3f47f6cd4109c6-failpoints/bin
85
+ GO_TEST_FLAGS=' -v -run=TestRobustnessRegression/issue20221 -count 200 -failfast --bin-dir=/tmp/etcd-866bc0717c0b56579514c7363f3f47f6cd4109c6-failpoints/bin' $(TOPLEVEL_MAKE ) test-robustness && \
86
+ echo " Failed to reproduce" || echo " Successful reproduction"
87
+
83
88
# Etcd API usage by Kubernetes
84
89
85
90
.PHONY : k8s-coverage
@@ -125,6 +130,14 @@ $(GOPATH)/bin/gofail: $(REPOSITORY_ROOT)/tools/mod/go.mod $(REPOSITORY_ROOT)/too
125
130
$(MAKE ) gofail-enable; \
126
131
$(MAKE ) build;
127
132
133
+ /tmp/etcd-866bc0717c0b56579514c7363f3f47f6cd4109c6-failpoints/bin : $(GOPATH ) /bin/gofail
134
+ rm -rf /tmp/etcd-866bc0717c0b56579514c7363f3f47f6cd4109c6-failpoints/
135
+ mkdir -p /tmp/etcd-866bc0717c0b56579514c7363f3f47f6cd4109c6-failpoints/
136
+ cd /tmp/etcd-866bc0717c0b56579514c7363f3f47f6cd4109c6-failpoints/; \
137
+ git clone --depth 1 --revision 866bc0717c0b56579514c7363f3f47f6cd4109c6 https://github.com/etcd-io/etcd.git . ; \
138
+ $(MAKE ) gofail-enable; \
139
+ $(MAKE ) build;
140
+
128
141
/tmp/etcd-release-3.6-failpoints/bin : $(GOPATH ) /bin/gofail
129
142
rm -rf /tmp/etcd-release-3.6-failpoints/
130
143
mkdir -p /tmp/etcd-release-3.6-failpoints/
Original file line number Diff line number Diff line change @@ -308,5 +308,24 @@ func Regression(t *testing.T) []TestScenario {
308
308
),
309
309
})
310
310
311
+ scenarios = append (scenarios , TestScenario {
312
+ Name : "issue20221" ,
313
+ Profile : traffic .HighTrafficProfile .WithoutCompaction ().WithContinuousWatchCreationInterval (10 * time .Millisecond ).WithContinuousWatchCreationRevisionOffset (100 ),
314
+ Failpoint : failpoint .RaftAfterSaveSnapPanic ,
315
+ // Failpoint: failpoint.RaftBeforeApplySnapPanic,
316
+ // Failpoint: failpoint.RaftAfterApplySnapPanic,
317
+ // Failpoint: failpoint.RaftAfterWALReleasePanic,
318
+ Traffic : traffic .Kubernetes ,
319
+ Cluster : * e2e .NewConfig (
320
+ e2e .WithClusterSize (3 ),
321
+ e2e .WithCompactionBatchLimit (10 ),
322
+ e2e .WithSnapshotCount (50 ),
323
+ e2e .WithSnapshotCatchUpEntries (100 ),
324
+ e2e .WithGoFailEnabled (true ),
325
+ e2e .WithPeerProxy (true ),
326
+ e2e .WithIsPeerTLS (true ),
327
+ ),
328
+ })
329
+
311
330
return scenarios
312
331
}
You can’t perform that action at this time.
0 commit comments