@@ -210,10 +210,12 @@ func parseRepairAsyncReq(t *testing.T, req *http.Request) repairReq {
210
210
host : netip .MustParseAddr (req .URL .Hostname ()),
211
211
keyspace : strings .TrimPrefix (req .URL .Path , repairAsyncEndpoint + "/" ),
212
212
table : req .URL .Query ().Get ("columnFamilies" ),
213
- replicaSet : util2 .ConvertSlice (strings .Split (req .URL .Query ().Get ("hosts" ), "," ), netip .MustParseAddr ),
214
213
ranges : parseRanges (t , req .URL .Query ().Get ("ranges" )),
215
214
smallTableOptimization : req .URL .Query ().Get ("small_table_optimization" ) == "true" ,
216
215
}
216
+ if replicaSet := req .URL .Query ().Get ("hosts" ); replicaSet != "" {
217
+ sched .replicaSet = util2 .ConvertSlice (strings .Split (replicaSet , "," ), netip .MustParseAddr )
218
+ }
217
219
if rawRangesParallelism := req .URL .Query ().Get ("ranges_parallelism" ); rawRangesParallelism != "" {
218
220
rangesParallelism , err := strconv .Atoi (rawRangesParallelism )
219
221
if err != nil {
@@ -237,11 +239,15 @@ func parseTabletRepairReq(t *testing.T, req *http.Request) repairReq {
237
239
}
238
240
239
241
sched := repairReq {
240
- host : netip .MustParseAddr (req .URL .Hostname ()),
241
- keyspace : req .URL .Query ().Get ("ks" ),
242
- table : req .URL .Query ().Get ("table" ),
243
- dcFilter : strings .Split (req .URL .Query ().Get ("dcs_filter" ), "," ),
244
- hostFilter : util2 .ConvertSlice (strings .Split (req .URL .Query ().Get ("hosts_filter" ), "," ), netip .MustParseAddr ),
242
+ host : netip .MustParseAddr (req .URL .Hostname ()),
243
+ keyspace : req .URL .Query ().Get ("ks" ),
244
+ table : req .URL .Query ().Get ("table" ),
245
+ }
246
+ if dcFilter := req .URL .Query ().Get ("dcs_filter" ); dcFilter != "" {
247
+ sched .dcFilter = strings .Split (dcFilter , "," )
248
+ }
249
+ if hostsFilter := req .URL .Query ().Get ("hosts_filter" ); hostsFilter != "" {
250
+ sched .hostFilter = util2 .ConvertSlice (strings .Split (hostsFilter , "," ), netip .MustParseAddr )
245
251
}
246
252
if sched .keyspace == "" || sched .table == "" {
247
253
t .Error ("Not fully initialized tablet repair sched req" )
0 commit comments