@@ -81,40 +81,41 @@ func Exploratory(_ *testing.T) []TestScenario {
81
81
// 60% with all members of current version
82
82
{Choice : options.ClusterOptions {options .WithVersion (e2e .CurrentVersion )}, Weight : 60 },
83
83
// 10% with 2 members of current version, 1 member last version, leader is current version
84
- {Choice : options.ClusterOptions {options .WithVersion (e2e .MinorityLastVersion ), options .WithInitialLeaderIndex (0 )}, Weight : 10 },
85
- // 10% with 2 members of current version, 1 member last version, leader is last version
86
- {Choice : options.ClusterOptions {options .WithVersion (e2e .MinorityLastVersion ), options .WithInitialLeaderIndex (2 )}, Weight : 10 },
87
- // 10% with 2 members of last version, 1 member current version, leader is last version
88
- {Choice : options.ClusterOptions {options .WithVersion (e2e .QuorumLastVersion ), options .WithInitialLeaderIndex (0 )}, Weight : 10 },
89
- // 10% with 2 members of last version, 1 member current version, leader is current version
90
- {Choice : options.ClusterOptions {options .WithVersion (e2e .QuorumLastVersion ), options .WithInitialLeaderIndex (2 )}, Weight : 10 },
84
+ // {Choice: options.ClusterOptions{options.WithVersion(e2e.MinorityLastVersion), options.WithInitialLeaderIndex(0)}, Weight: 10},
85
+ // // 10% with 2 members of current version, 1 member last version, leader is last version
86
+ // {Choice: options.ClusterOptions{options.WithVersion(e2e.MinorityLastVersion), options.WithInitialLeaderIndex(2)}, Weight: 10},
87
+ // // 10% with 2 members of last version, 1 member current version, leader is last version
88
+ // {Choice: options.ClusterOptions{options.WithVersion(e2e.QuorumLastVersion), options.WithInitialLeaderIndex(0)}, Weight: 10},
89
+ // // 10% with 2 members of last version, 1 member current version, leader is current version
90
+ // {Choice: options.ClusterOptions{options.WithVersion(e2e.QuorumLastVersion), options.WithInitialLeaderIndex(2)}, Weight: 10},
91
91
}
92
92
mixedVersionOption := options .WithClusterOptionGroups (random.PickRandom [options.ClusterOptions ](mixedVersionOptionChoices ))
93
93
94
94
baseOptions := []e2e.EPClusterOption {
95
- options .WithSnapshotCount (50 , 100 , 1000 ),
95
+ options .WithSnapshotCount (100000 ),
96
96
options .WithSubsetOptions (randomizableOptions ... ),
97
97
e2e .WithGoFailEnabled (true ),
98
+ e2e .WithKeepDataDir (true ),
98
99
// Set low minimal compaction batch limit to allow for triggering multi batch compaction failpoints.
99
- options .WithCompactionBatchLimit (10 , 100 , 1000 ),
100
+ options .WithCompactionBatchLimit (100000 ),
100
101
e2e .WithWatchProcessNotifyInterval (100 * time .Millisecond ),
101
102
}
102
103
103
104
if e2e .CouldSetSnapshotCatchupEntries (e2e .BinPath .Etcd ) {
104
105
baseOptions = append (baseOptions , e2e .WithSnapshotCatchUpEntries (100 ))
105
106
}
106
107
scenarios := []TestScenario {}
107
- for _ , tp := range trafficProfiles {
108
- name := filepath .Join (tp .Name , "ClusterOfSize1" )
109
- clusterOfSize1Options := baseOptions
110
- clusterOfSize1Options = append (clusterOfSize1Options , e2e .WithClusterSize (1 ))
111
- scenarios = append (scenarios , TestScenario {
112
- Name : name ,
113
- Traffic : tp .Traffic ,
114
- Profile : tp .Profile ,
115
- Cluster : * e2e .NewConfig (clusterOfSize1Options ... ),
116
- })
117
- }
108
+ // for _, tp := range trafficProfiles {
109
+ // name := filepath.Join(tp.Name, "ClusterOfSize1")
110
+ // clusterOfSize1Options := baseOptions
111
+ // clusterOfSize1Options = append(clusterOfSize1Options, e2e.WithClusterSize(1))
112
+ // scenarios = append(scenarios, TestScenario{
113
+ // Name: name,
114
+ // Traffic: tp.Traffic,
115
+ // Profile: tp.Profile,
116
+ // Cluster: *e2e.NewConfig(clusterOfSize1Options...),
117
+ // })
118
+ // }
118
119
119
120
for _ , tp := range trafficProfiles {
120
121
name := filepath .Join (tp .Name , "ClusterOfSize3" )
0 commit comments