Skip to content

Commit

Permalink
Merge pull request etcd-io#16085 from serathius/robustness-disable-bl…
Browse files Browse the repository at this point in the history
…ackhole

tests/robustness: Disable blackhole until snapshot for v3.5 and v3.4
  • Loading branch information
serathius authored Jun 16, 2023
2 parents 8de14bd + fb16bca commit 5725875
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 1 addition & 7 deletions tests/robustness/failpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"go.uber.org/zap"
healthpb "google.golang.org/grpc/health/grpc_health_v1"

"go.etcd.io/etcd/api/v3/version"
clientv3 "go.etcd.io/etcd/client/v3"
"go.etcd.io/etcd/tests/v3/framework/e2e"
)
Expand Down Expand Up @@ -403,12 +402,7 @@ func (tb triggerBlackhole) Trigger(t *testing.T, ctx context.Context, member e2e
}

func (tb triggerBlackhole) Available(config e2e.EtcdProcessClusterConfig, process e2e.EtcdProcess) bool {
v, err := e2e.GetVersionFromBinary(e2e.BinPath.Etcd)
if err != nil {
panic(err)
}
// TODO: Deflake waiting for snapshot for v3.4.X
if tb.waitTillSnapshot && v.LessThan(version.V3_5) {
if tb.waitTillSnapshot && config.SnapshotCatchUpEntries > 100 {
return false
}
return config.ClusterSize > 1 && process.PeerProxy() != nil
Expand Down
4 changes: 3 additions & 1 deletion tests/robustness/linearizability_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,14 @@ func TestRobustness(t *testing.T) {
e2e.WithClusterSize(1),
),
})
if v.Compare(version.V3_5) >= 0 {
// TODO: Deflake waiting for waiting until snapshot for etcd versions that don't support setting snapshot catchup entries.
if v.Compare(version.V3_6) >= 0 {
scenarios = append(scenarios, testScenario{
name: "Issue15271",
failpoint: BlackholeUntilSnapshot,
traffic: traffic.HighTraffic,
cluster: *e2e.NewConfig(
e2e.WithSnapshotCatchUpEntries(100),
e2e.WithSnapshotCount(100),
e2e.WithPeerProxy(true),
e2e.WithIsPeerTLS(true),
Expand Down

0 comments on commit 5725875

Please sign in to comment.