MCPcopy
hub / github.com/grafana/tempo / waitActivePartitions

Function waitActivePartitions

integration/operations/livestore_test.go:326–335  ·  view source on GitHub ↗
(t *testing.T, service *e2e.HTTPService, count int)

Source from the content-addressed store, hash-verified

324}
325
326func waitActivePartitions(t *testing.T, service *e2e.HTTPService, count int) {
327 matchers := []*labels.Matcher{
328 {Type: labels.MatchEqual, Name: "state", Value: "Active"},
329 {Type: labels.MatchEqual, Name: "name", Value: "livestore-partitions"},
330 }
331 require.NoError(t, service.WaitSumMetricsWithOptions(
332 e2e.Equals(float64(count)),
333 []string{"tempo_partition_ring_partitions"},
334 e2e.WithLabelMatchers(matchers...)), "distributor failed to see the partition ring")
335}
336
337func newLiveStore(name string, zone string) *e2e.HTTPService {
338 return util.NewTempoService(name, "live-store", e2e.NewHTTPReadinessProbe(3200, "/ready", 200, 299), nil, "-live-store.instance-availability-zone="+zone)

Calls 1

EqualsMethod · 0.80

Tested by

no test coverage detected