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

Function formatActivePartitions

modules/blockbuilder/blockbuilder.go:536–542  ·  view source on GitHub ↗
(partitions []int32)

Source from the content-addressed store, hash-verified

534}
535
536func formatActivePartitions(partitions []int32) string {
537 var strArr []string
538 for _, v := range partitions {
539 strArr = append(strArr, strconv.Itoa(int(v)))
540 }
541 return strings.Join(strArr, ",")
542}
543
544// It fetches all the offsets for the blockbuilder topic, for each owned partitions it calculates their last committed records and the
545// end record offset. Based on that it sort the partitions by lag

Callers 1

consumeMethod · 0.85

Calls 1

JoinMethod · 0.65

Tested by

no test coverage detected